The Ord interface defines comparison operations on ordered data types.
A minimal definition includes either `compare` or `(<)`.
Parameters: ty
Constraints: Eq ty
Constructor: MkOrd
Methods:
compare : ty -> ty -> Ordering
(<) : ty -> ty -> Bool
- Fixity Declaration: infix operator, level 6
(>) : ty -> ty -> Bool
- Fixity Declaration: infix operator, level 6
(<=) : ty -> ty -> Bool
- Fixity Declaration: infix operator, level 6
(>=) : ty -> ty -> Bool
- Fixity Declaration: infix operator, level 6
max : ty -> ty -> ty
min : ty -> ty -> ty
Implementations:
Ord Nat
Ord a => Ord (Maybe a)
(Ord a, Ord b) => Ord (Either a b)
Ord a => Ord (List a)
Ord a => Ord (SnocList a)
Ord Prec
Ord Void
Ord ()
Ord Bool
Ord Int
Ord Integer
Ord Bits8
Ord Bits16
Ord Bits32
Ord Bits64
Ord Int8
Ord Int16
Ord Int32
Ord Int64
Ord Double
Ord String
Ord Char
Ord a => Ord b => Ord (a, b)