| Copyright | (c) 2012 Simon Meier |
|---|---|
| License | GPL v3 (see LICENSE) |
| Maintainer | Simon Meier <iridcode@gmail.com> |
| Safe Haskell | Safe |
| Language | Haskell98 |
Extension.Data.Monoid
Description
A variant of Data.Monoid that also exports '(<>)' for mappend.
- module Data.Monoid
- newtype MinMax a = MinMax {}
- minMaxSingleton :: a -> MinMax a
Documentation
module Data.Monoid
A newtype wrapper around Maybe that returns a tuple of the minimum and
maximum value encountered, if there was any.
minMaxSingleton :: a -> MinMax a #
Construct a MinMax value from a singleton value.