Proposal: add fromRight and fromLeft to Data.Either

wren romano wren at community.haskell.org
Sun May 29 00:48:31 UTC 2016


On Sat, May 21, 2016 at 2:06 PM, Andreas Abel <abela at chalmers.se> wrote:
> Ah, yes, we want fromLeft and fromRight, but with types
>
>   fromLeft  :: a -> Either a b -> a
>   fromRight :: b -> Either a b -> b
>
> where the first argument is the "default", like

If anything is added, then +1 for these versions.

Very strong -1 for adding partial functions.

-- 
Live well,
~wren


More information about the Libraries mailing list