Copyright | (c) Edward Kmett 2009-2011 |
---|---|
License | BSD-style |
Maintainer | ekmett@gmail.com |
Stability | experimental |
Portability | non-portable (MPTCs) |
Safe Haskell | Trustworthy |
Language | Haskell98 |
A semigroup for working with Alternative
Functor
s.
- newtype Alternate f a = Alternate {
- getAlternate :: f a
Documentation
A Alternate
turns any Alternative
instance into a Monoid
.
Alternate | |
|
Alternative f => Alternative (Alternate f) | |
Functor f => Functor (Alternate f) | |
Applicative f => Applicative (Alternate f) | |
Alternative f => Reducer (f a) (Alternate f a) | |
Alternative f => Monoid (Alternate f a) | |
Alternative f => Semigroup (Alternate f a) |