Chris Smith wrote:
> class Ord a => Range a where...

Before adding a completely new Range class, I would suggest
considering Paul Johnson's Ranged-sets package:

http://hackage.haskell.org/package/Ranged-sets

Ranges have many more natural operations, and interactions
with other classes, than you mention.

The Ranged-sets package is well thought out and general.
It distinguishes carefully between discrete and non-discrete
types, and provides appropriate instances for the
standard types.

Thanks,
Yitz

_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to