Maintainer | Simon Meier <iridcode@gmail.com> |
---|---|
Safe Haskell | Safe-Infered |
Monoids for bounded types.
- newtype BoundedMax a = BoundedMax {
- getBoundedMax :: a
- newtype BoundedMin a = BoundedMin {
- getBoundedMin :: a
Documentation
newtype BoundedMax a Source
A newtype wrapper for a monoid of the maximum of a bounded type.
BoundedMax | |
|
Eq a => Eq (BoundedMax a) | |
Ord a => Ord (BoundedMax a) | |
Show a => Show (BoundedMax a) | |
(Ord a, Bounded a) => Monoid (BoundedMax a) |
newtype BoundedMin a Source
A newtype wrapper for a monoid of the minimum of a bounded type.
BoundedMin | |
|
Eq a => Eq (BoundedMin a) | |
Ord a => Ord (BoundedMin a) | |
Show a => Show (BoundedMin a) | |
(Ord a, Bounded a) => Monoid (BoundedMin a) |