The source project of this merge request has been removed.
Refactor uses of `partitionEithers . map`
This MR implements changes that refactor uses of the idioms partitionEithers (map f xs)
and partitionEithers (mapM f xs)
into partitionWith f xs
and partitionWithM f xs
respectively, where partitionWith
is an existing utility function from GHC.Utils.Misc
and partitionWithM
a newly added monadic version.
The MR contains two commits: one for the non-monadic idiom and one for the monadic idiom.
Resolves: #23953 (closed)