Fix ghc being unlinked after installing a new one

Fixes #7
This commit is contained in:
Julian Ospald 2020-04-16 08:38:41 +02:00
parent b65b9dc5e1
commit 75632b2cf1
No known key found for this signature in database
GPG Key ID: 511B62C09D50CD28

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