Like Gofer, Glasgow Haskell has a three-way comparison operation in the Ord
class,
_cmp :: a -> a -> _TAG
where
data _TAG = _LT | _EQ | _GT
(The underbars are to avoid polluting the programmer's name space.)
I'd be glad to add this to Haskell. Partial orderings are a separate issue,
which I havn't thought through.
Simon PJ
- haskell Aiden McCaughey
- haskell Colin Runciman
- Re: haskell John Launchbury
- haskell Colin Runciman
- haskell Aiden McCaughey
- haskell Aiden McCaughey
- haskell Gavin Wraith
- Re: haskell Lennart Augustsson
- Re: haskell Paul Otto
- Re: haskell ipoole
- haskell Simon L Peyton Jones
- haskell Bob Buckley
- haskell Gavin Wraith
- haskell Gavin Wraith
- Re: haskell Lennart Augustsson
- Re: haskell Mark Jones
- haskell Gavin Wraith
- Re: haskell Lennart Augustsson
