Extra-1.42: A grab bag of modules.

Extra.Either

Synopsis

Documentation

lefts :: [Either a b] -> [a]Source

rights :: [Either a b] -> [b]Source

concatEithers :: [Either a b] -> Either [a] [b]Source

Turn a list of eithers into an either of lists

partitionEithers :: [Either a b] -> ([a], [b])Source

Return a pair of the lefts and the rights