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@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@haskell.org
http://www.haskell.org/mailman/listinfo/libraries