From fcdec4ba2c4a6a9ebaedfb58755dfd844ea926c2 Mon Sep 17 00:00:00 2001 From: openingnow Date: Fri, 29 Sep 2023 16:58:51 +0900 Subject: [PATCH] Add another cabal store path --- app/ghcup/GHCup/OptParse/Common.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/ghcup/GHCup/OptParse/Common.hs b/app/ghcup/GHCup/OptParse/Common.hs index acc482e6..ebda7232 100644 --- a/app/ghcup/GHCup/OptParse/Common.hs +++ b/app/ghcup/GHCup/OptParse/Common.hs @@ -824,7 +824,7 @@ checkForUpdates = do logGHCPostRm :: (MonadReader env m, HasLog env, MonadIO m) => GHCTargetVersion -> m () logGHCPostRm ghcVer = do - cabalStore <- liftIO $ handleIO (\_ -> if isWindows then pure "C:\\cabal\\store" else pure "~/.cabal/store") + cabalStore <- liftIO $ handleIO (\_ -> if isWindows then pure "C:\\cabal\\store" else pure "~/.cabal/store or ~/.local/state/cabal/store") (runIdentity . CC.cfgStoreDir <$> CC.readConfig) let storeGhcDir = cabalStore ("ghc-" <> T.unpack (prettyVer $ _tvVersion ghcVer)) logInfo $ T.pack $ "After removing GHC you might also want to clean up your cabal store at: " <> storeGhcDir