Fix ghc being unlinked after installing a new one

Fixes #7
This commit is contained in:
2020-04-16 08:38:41 +02:00
parent b65b9dc5e1
commit 75632b2cf1

View File

@@ -247,7 +247,6 @@ setGHC ver sghc = do
-- for ghc tools (ghc, ghci, haddock, ...)
verfiles <- ghcToolFiles ver
forM_ verfiles $ \file -> do
liftIO $ hideError doesNotExistErrorType $ deleteFile (bindir </> file)
targetFile <- case sghc of
SetGHCOnly -> pure file
SetGHC_XY -> do