on master help sign in
cosmetic: switch to forM to improve style
commitc0511751b701d13de412101464ca498f30169fd3 authorEvan Czaplicki <info@elm-lang.org> dateMon 9 Jun 2014, 08:54 (12 years ago) parenteaea367
1 file changed+2−1
compiler/Type/Solve.hs+2−1
compiler/Type/Solve.hs+2−1
@@ -32,7 +32,8 @@ generalize youngPool = do
3232 -- start at low ranks so that we only have to pass
3333 -- over the information once.
3434 visitedMark <- TS.uniqueMark
35− mapM (\(poolRank, vars) -> mapM (adjustRank youngMark visitedMark poolRank) vars) (Map.toList rankDict)
35+ forM (Map.toList rankDict) $ \(poolRank, vars) ->
36+ mapM (adjustRank youngMark visitedMark poolRank) vars
3637
3738 -- For variables that have rank lowerer than youngRank, register them in
3839 -- the old pool if they are not redundant.