Proposal: add fromRight and fromLeft to Data.Either

evan@evan-borden.com evan at evanrutledgeborden.dreamhosters.com
Tue May 31 03:25:56 UTC 2016


-1 for partial.

Indifferent on the total versions.

`either (const _) id` is easy enough.
On May 30, 2016 9:38 AM, "Kosyrev Serge" <_deepfire at feelingofgreen.ru>
wrote:

> lennart spitzner <lsp at informatik.uni-kiel.de> writes:
> >>>> 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.
>
> How should we address the part where we don't want to promote
> Partiality Oriented Programming?
>
> --
> с уважениeм / respectfully,
> Косырев Сергей
> _______________________________________________
> Libraries mailing list
> Libraries at haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/libraries/attachments/20160530/3c5eb96b/attachment.html>


More information about the Libraries mailing list