| Portability | non-portable (MPTCs) |
|---|---|
| Stability | experimental |
| Maintainer | ekmett@gmail.com |
| Safe Haskell | None |
Data.Semigroup.Alternative
Description
A semigroup for working with Alternative Functors.
- newtype Alternate f a = Alternate {
- getAlternate :: f a
Documentation
A Alternate turns any Alternative instance into a Monoid.
Constructors
| Alternate | |
Fields
| |
Instances
| Functor f => Functor (Alternate f) | |
| (Functor (Alternate f), Applicative f) => Applicative (Alternate f) | |
| (Applicative (Alternate f), Alternative f) => Alternative (Alternate f) | |
| (Semigroup (Alternate f a), Alternative f) => Reducer (f a) (Alternate f a) | |
| Alternative f => Monoid (Alternate f a) | |
| Alternative f => Semigroup (Alternate f a) |