This typeclass states that the synthesized Ord α
instance is compatible with the LE α
instance. This means that according to compare
, the following are equivalent:
a
is less than or equal tob
according tocompare
.b
is greater than or equal tob
according tocompare
.a ≤ b
holds.
LawfulOrderOrd α
automatically entails that Ord α
is oriented (see OrientedOrd α
)
and that LE α
is total.
Ord α
and LE α
mutually determine each other in the presence of LawfulOrderOrd α
.