Refactor uses of `partitionEithers <$> mapM f xs`
This patch changes occurences of the idiom `partitionEithers <$> mapM f xs` by the simpler form `partitionWithM f xs` where `partitionWithM` is a utility function newly added to `GHC.Utils.Misc`.
Showing
- compiler/GHC/Cmm/Pipeline.hs 2 additions, 4 deletionscompiler/GHC/Cmm/Pipeline.hs
- compiler/GHC/Driver/Make.hs 2 additions, 3 deletionscompiler/GHC/Driver/Make.hs
- compiler/GHC/Driver/Pipeline.hs 2 additions, 6 deletionscompiler/GHC/Driver/Pipeline.hs
- compiler/GHC/StgToJS/Deps.hs 3 additions, 4 deletionscompiler/GHC/StgToJS/Deps.hs
- compiler/GHC/StgToJS/Expr.hs 1 addition, 2 deletionscompiler/GHC/StgToJS/Expr.hs
- compiler/GHC/Utils/Misc.hs 11 additions, 1 deletioncompiler/GHC/Utils/Misc.hs
Loading
Please register or sign in to comment