Prefer forM_ when possible
This commit is contained in:
parent
626a2dd020
commit
8eea9bd6a5
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user