add Data.Bool.ifThenElse
Edward Kmett
ekmett at gmail.com
Tue Mar 1 18:22:50 CET 2011
On Mon, Feb 28, 2011 at 7:40 AM, Antoine Latter <aslatter at gmail.com> wrote:
> On Mon, Feb 28, 2011 at 6:13 AM, Henning Thielemann
> <lemming at henning-thielemann.de> wrote:
> >
> > If I activate RebindableSyntax in GHC-7.0, I have to provide a function
> > named ifThenElse. How about a default implementation in Data.Bool that is
> > equivalent to classical if-then-else? So far, I only use RebindableSyntax
> > for overloaded number literals.
> >
>
> This would also add 'ifThenElse' to the Prelude, correct?
Not necessarily. The prelude exports subsets of many modules. (e.g.
Data.Functor includes (<$), etc.)
-Edward Kmett
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/libraries/attachments/20110301/3805c0e7/attachment.htm>
More information about the Libraries
mailing list