-
Notifications
You must be signed in to change notification settings - Fork 91
Closed
Labels
type: documentationImprovements or additions to documentation.Improvements or additions to documentation.
Description
Currently the docs say:
-- | The `Ord` type class represents types which support comparisons with a
-- | _total order_.
-- |
-- | `Ord` instances should satisfy the laws of total orderings:
-- |
-- | - Reflexivity: `a <= a`
-- | - Antisymmetry: if `a <= b` and `b <= a` then `a = b`
-- | - Transitivity: if `a <= b` and `b <= c` then `a <= c`
class Eq a <= Ord a where
compare :: a -> a -> Ordering
Eq
is required, but there's nothing else that says why or how Ord
and Eq
are related.
Metadata
Metadata
Assignees
Labels
type: documentationImprovements or additions to documentation.Improvements or additions to documentation.