Proposal: add fromRight and fromLeft to Data.Either

lennart spitzner lsp at
Mon May 30 11:33:18 UTC 2016

>>> Data.Either.Combinators.fromLeft  :: a -> Either a b -> a
> This is the thing we want.

Oh indeed, derp; still had the first suggestion in mind.
(b -> (a -> b) -> Either ..)

On this one i am neutral.

More information about the Libraries mailing list