On 09/10/2013 11:02 PM, Oliver Charles wrote:OK, I think this has got enough support from the community to be deemed
> 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
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