| Copyright | (c) 2011 Simon Meier |
|---|---|
| License | GPL v3 (see LICENSE) |
| Maintainer | Simon Meier <iridcode@gmail.com> |
| Safe Haskell | Safe |
| Language | Haskell98 |
Extension.Data.Bounded
Description
Monoids for bounded types.
- newtype BoundedMax a = BoundedMax {
- getBoundedMax :: a
- newtype BoundedMin a = BoundedMin {
- getBoundedMin :: a
Documentation
newtype BoundedMax a #
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 #
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) # | |