<div dir="ltr">That sounds like a plan. 'bool' received overwhelming support, but 'cond' received a somewhat more lukewarm reception.<div><br></div><div>-Edward</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Thu, Sep 12, 2013 at 5:31 AM, Oliver Charles <span dir="ltr"><<a href="mailto:ollie@ocharles.org.uk" target="_blank">ollie@ocharles.org.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On 09/10/2013 11:02 PM, Oliver Charles wrote:<br>
> Hello,<br>
><br>
> I would like to propose that the following is added to Data.Bool in base:<br>
><br>
> bool :: a -> a -> Bool -> a<br>
> bool f _ False = f<br>
> bool _ t True = t<br>
<br>
</div>OK, I think this has got enough support from the community to be deemed<br>
worth having, with this exact name and type signature. cond has also<br>
been suggested, but I'm going to leave that as it wasn't part of my<br>
original proposal and seems less critical.<br>
<br>
Unless people really think I should consider 'cond' too, I will start<br>
learning how to contribute this patch to base and doing the rest of the<br>
necessary work.<br>
<br>
Thanks for all the feedback!<br>
- ocharles<br>
<br>
<br>
<br>_______________________________________________<br>
Libraries mailing list<br>
<a href="mailto:Libraries@haskell.org">Libraries@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/libraries" target="_blank">http://www.haskell.org/mailman/listinfo/libraries</a><br>
<br></blockquote></div><br></div>