Skip to content
Snippets Groups Projects
Verified Commit ad4d185e authored by Julian Ospald's avatar Julian Ospald :tea:
Browse files

Fix GHCUP_INSTALL_BASE_PREFIX

This should be the *parent* dir of '.ghcup', not
the full destination.
parent b18aafe2
No related branches found
No related tags found
No related merge requests found
......@@ -39,11 +39,10 @@ import qualified System.Posix.User as PU
ghcupBaseDir :: IO (Path Abs)
ghcupBaseDir = do
getEnv "GHCUP_INSTALL_BASE_PREFIX" >>= \case
bdir <- getEnv "GHCUP_INSTALL_BASE_PREFIX" >>= \case
Just r -> parseAbs r
Nothing -> do
home <- liftIO getHomeDirectory
pure (home </> [rel|.ghcup|])
Nothing -> liftIO getHomeDirectory
pure (bdir </> [rel|.ghcup|])
ghcupGHCBaseDir :: IO (Path Abs)
ghcupGHCBaseDir = ghcupBaseDir <&> (</> [rel|ghc|])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment