summaryrefslogtreecommitdiff
path: root/compiler/GHC/Driver/Session.hs
diff options
context:
space:
mode:
authorGauvain 'GovanifY' Roussel-Tarbouriech <gauvain@govanify.com>2020-12-05 23:02:44 +0100
committerMarge Bot <ben+marge-bot@smart-cactus.org>2021-02-18 13:46:19 -0500
commit763d28551de32377a1dca8bdde02979e3686f400 (patch)
treeb96de6da511d3fc2f7b29260d8250afb787df758 /compiler/GHC/Driver/Session.hs
parent2adfb404111c220ef4df0206d9cda20c2fe5db46 (diff)
downloadhaskell-763d28551de32377a1dca8bdde02979e3686f400.tar.gz
directory: ensure xdg compliance (Fix #6077)
Diffstat (limited to 'compiler/GHC/Driver/Session.hs')
-rw-r--r--compiler/GHC/Driver/Session.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/GHC/Driver/Session.hs b/compiler/GHC/Driver/Session.hs
index 90f49f995f..5e76da3490 100644
--- a/compiler/GHC/Driver/Session.hs
+++ b/compiler/GHC/Driver/Session.hs
@@ -867,7 +867,7 @@ opt_i dflags= toolSettings_opt_i $ toolSettings dflags
versionedAppDir :: String -> ArchOS -> MaybeT IO FilePath
versionedAppDir appname platform = do
-- Make sure we handle the case the HOME isn't set (see #11678)
- appdir <- tryMaybeT $ getAppUserDataDirectory appname
+ appdir <- tryMaybeT $ getXdgDirectory XdgData appname
return $ appdir </> versionedFilePath platform
versionedFilePath :: ArchOS -> FilePath