Module

Data.Ord.Max

#Max

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

Modules