| Maintainer | Simon Meier <iridcode@gmail.com> |
|---|---|
| Safe Haskell | Safe-Inferred |
Extension.Data.Bounded
Description
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.
Constructors
| BoundedMax | |
Fields
| |
Instances
| 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.
Constructors
| BoundedMin | |
Fields
| |
Instances
| Eq a => Eq (BoundedMin a) | |
| Ord a => Ord (BoundedMin a) | |
| Show a => Show (BoundedMin a) | |
| (Ord a, Bounded a) => Monoid (BoundedMin a) |