<div dir="ltr">That sounds like a plan. &#39;bool&#39; received overwhelming support, but &#39;cond&#39; 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">&lt;<a href="mailto:ollie@ocharles.org.uk" target="_blank">ollie@ocharles.org.uk</a>&gt;</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>
&gt; Hello,<br>
&gt;<br>
&gt; I would like to propose that the following is added to Data.Bool in base:<br>
&gt;<br>
&gt; bool :: a -&gt; a -&gt; Bool -&gt; a<br>
&gt; bool f _ False = f<br>
&gt; 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&#39;m going to leave that as it wasn&#39;t part of my<br>
original proposal and seems less critical.<br>
<br>
Unless people really think I should consider &#39;cond&#39; 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>