Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Documentation
class Eq a => Ord a where Source #
The Ord
class is used for totally ordered datatypes.
Minimal complete definition: either compare
or <=
.
Using compare
can be more efficient for complex types.
Nothing
compare :: a -> a -> Ordering Source #
(<) :: a -> a -> Bool infix 4 Source #
(<=) :: a -> a -> Bool infix 4 Source #
(>) :: a -> a -> Bool infix 4 Source #