Proposal: Add bool to Data.Bool

Edward Kmett ekmett at gmail.com
Thu Sep 12 17:54:46 CEST 2013


That sounds like a plan. 'bool' received overwhelming support, but 'cond'
received a somewhat more lukewarm reception.

-Edward


On Thu, Sep 12, 2013 at 5:31 AM, Oliver Charles <ollie at ocharles.org.uk>wrote:

> On 09/10/2013 11:02 PM, Oliver Charles wrote:
> > Hello,
> >
> > I would like to propose that the following is added to Data.Bool in base:
> >
> > bool :: a -> a -> Bool -> a
> > bool f _ False = f
> > bool _ t True  = t
>
> OK, I think this has got enough support from the community to be deemed
> worth having, with this exact name and type signature. cond has also
> been suggested, but I'm going to leave that as it wasn't part of my
> original proposal and seems less critical.
>
> Unless people really think I should consider 'cond' too, I will start
> learning how to contribute this patch to base and doing the rest of the
> necessary work.
>
> Thanks for all the feedback!
> - ocharles
>
>
>
> _______________________________________________
> Libraries mailing list
> Libraries at haskell.org
> http://www.haskell.org/mailman/listinfo/libraries
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/libraries/attachments/20130912/91f7d37d/attachment.htm>


More information about the Libraries mailing list