Module
Data.Comparison
- Package
- purescript-contravariant
- Repository
- purescript/purescript-contravariant
#Comparison Source
newtype Comparison a
An adaptor allowing >$<
to map over the inputs of a comparison function.
Constructors
Comparison (a -> a -> Ordering)
Instances
#defaultComparison Source
defaultComparison :: forall a. Ord a => Comparison a
The default comparison for any values with an Ord
instance.