Skip to content

Refactor uses of `partitionEithers . map`

Stefan Holdermans requested to merge (removed):23953-partitionEithers into master

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)

Merge request reports