Module
Data.Generic.Rep.Ord
- Package
- purescript-generics-repDEPRECATED
- Repository
- purescript/purescript-generics-rep
#GenericOrd Source
class GenericOrd a where
Members
genericCompare' :: a -> a -> Ordering
Instances
GenericOrd NoConstructors
GenericOrd NoArguments
(GenericOrd a, GenericOrd b) => GenericOrd (Sum a b)
(GenericOrd a, GenericOrd b) => GenericOrd (Product a b)
(GenericOrd a) => GenericOrd (Constructor name a)
(Ord a) => GenericOrd (Argument a)
(GenericOrd a) => GenericOrd (Rec a)
(Ord a) => GenericOrd (Field name a)
#genericCompare Source
genericCompare :: forall rep a. Generic a rep => GenericOrd rep => a -> a -> Ordering
A Generic
implementation of the compare
member from the Ord
type class.