@@ -71,6 +71,12 @@ instance Eq Ordering where
71 GT == GT = True
71 GT == GT = True
72 _ == _ = False
72 _ == _ = False
74+||| Compose two comparisons into the lexicographic product
75+thenCompare : Ordering -> Lazy Ordering -> Ordering
74||| The Ord class defines comparison operations on ordered data types.
80||| The Ord class defines comparison operations on ordered data types.
75class Eq a => Ord a where
81class Eq a => Ord a where
76 compare : a -> a -> Ordering
82 compare : a -> a -> Ordering