ord -package:sbv -package:Cabal-syntax -package:text -package:BNFC-meta package:basic-prelude
The
Ord class is used for totally ordered datatypes.
Instances of
Ord can be derived for any user-defined datatype
whose constituent types are in
Ord. The declared order of the
constructors in the data declaration determines the ordering in
derived
Ord instances. The
Ordering datatype allows a
single comparison to determine the precise ordering of two objects.
Minimal complete definition: either
compare or
<=.
Using
compare can be more efficient for complex types.
O(n) Joins words using single space characters.
O(n) Breaks a
Text up into a list of words, delimited by
Chars representing white space.
A
Word is an unsigned integral type, with the same size as
Int.
32-bit unsigned integer type
64-bit unsigned integer type
8-bit unsigned integer type