Module

Data.Ord.Max

Package
purescript-orders
Repository
purescript/purescript-orders

#Max Source

newtype Max a

Provides a Semigroup based on the max function. If the type has a Bounded instance, then a Monoid instance is provided too. For example:

unwrap (Max 5 <> Max 6) = 6
mempty :: Max Ordering = Max LT

Constructors

Instances