Ternary operators in Haskell, an observation (was: [Haskell] Do the libraries define S' ?)

Graham Klyne GK at ninebynine.org
Tue Aug 3 05:51:25 EDT 2004

At 14:05 02/08/04 -0700, John Meacham wrote:
>You might be interested in my BooleanAlgebra class, which replaces the
>various boolean operators from the prelude with overloaded versions
>with various useful instances.
>The really nice thing is the instance for Bool is exactly the same as
>the prelude version so this can be dropped into existing code without
>change (modulo the monomorphism restriction).

Nice!  (I've only looked briefly, but the generalization looks neat.)

Is this a candidate for the standard hierarchical libraries? (Data.Boolean?)


Graham Klyne
For email:

More information about the Haskell mailing list