Prefer forM_ when possible

This commit is contained in:
Julian Ospald 2021-11-12 01:04:27 +01:00
parent 626a2dd020
commit 8eea9bd6a5
Signed by: hasufell
GPG Key ID: 3786C5262ECB4A3F

View File

@ -1097,7 +1097,7 @@ setGHC ver sghc = do
pure $ Just (file <> "-" <> verS)
-- create symlink
forM mTargetFile $ \targetFile -> do
forM_ mTargetFile $ \targetFile -> do
let fullF = binDir </> targetFile <> exeExt
fileWithExt = file <> exeExt
destL <- lift $ ghcLinkDestination fileWithExt ver