Proposal: Add bool to Data.Bool

Christopher Done chrisdone at gmail.com
Wed Sep 11 00:44:56 CEST 2013


Hm, maybe:

bool :: a -> a -> Bool -> a
cond :: (a -> b) -> (a -> b) -> (a -> Bool) -> a -> b


On 11 September 2013 00:36, Christopher Done <chrisdone at gmail.com> wrote:

> +1
>
> I use:
>
> bool :: (a -> b) -> (a -> b) -> (a -> Bool) -> a -> b
>
> which is better for point-free programming, but I'll go along with yours
> because bool :: a -> a -> Bool -> a is also useful.​
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/libraries/attachments/20130911/8770eda8/attachment.htm>


More information about the Libraries mailing list