Generates an Ord instance declaration for the given data type or data family instance.
Modulederiving-compat-0.6.8Haskell2010
Data.Ord.Deriving.Internal
Exports functions to mechanically derive Ord, Ord1, and Ord2 instances.
Note: this is an internal module, and as such, the API presented here is not guaranteed to be stable, even between minor releases of this library.
Synopsis
- value deriveOrd
- value makeCompare
- value makeLE
- value makeLT
- value makeGT
- value makeGE
- value makeMax
- value makeMin
- value deriveOrd1
- value makeLiftCompare
- value makeCompare1
- value deriveOrd2
- value makeLiftCompare2
- value makeCompare2
- Packagederiving-compat-0.6.8
- Exports14
- LanguageHaskell2010
- LicenceBSD-3-Clause
- SourceInternal.hs
Generates a lambda expression which behaves like (<=) (without
requiring an Ord instance).
Generates a lambda expression which behaves like (<) (without
requiring an Ord instance).
Generates a lambda expression which behaves like (>) (without
requiring an Ord instance).
Generates a lambda expression which behaves like (>=) (without
requiring an Ord instance).
Ord1
Generates an Ord1 instance declaration for the given data type or data
family instance.
Generates a lambda expression which behaves like liftCompare (without
requiring an Ord1 instance).
This function is not available with transformers-0.4.
Generates a lambda expression which behaves like compare1 (without
requiring an Ord1 instance).
Ord2
Generates an Ord2 instance declaration for the given data type or data
family instance.
This function is not available with transformers-0.4.
Generates a lambda expression which behaves like liftCompare2 (without
requiring an Ord2 instance).
This function is not available with transformers-0.4.
Generates a lambda expression which behaves like compare2 (without
requiring an Ord2 instance).
This function is not available with transformers-0.4.