adds conditional export of useXDG in non-windows OS-es. fix in rmGhcupDirs code that used useXDG

This commit is contained in:
Arjun Kathuria 2021-06-24 22:48:38 +05:30
parent 82a8c61cf6
commit 9515065407
2 changed files with 4 additions and 1 deletions

View File

@ -1370,7 +1370,7 @@ rmGhcupDirs = do
rmBinDir binDir = do
#if !defined(IS_WINDOWS)
isXDGStyle <- useXDG
isXDGStyle <- liftIO $ useXDG
if not isXDGStyle
then removeDirIfEmpty binDir
else pure ()

View File

@ -27,6 +27,9 @@ module GHCup.Utils.Dirs
, relativeSymlink
, withGHCupTmpDir
, getConfigFilePath
#if !defined(IS_WINDOWS)
, useXDG
#endif
)
where