| Safe Haskell | Safe |
|---|---|
| Language | Haskell2010 |
Data.Monoid.Abelian
Synopsis
- newtype FreeAbelianMonoid a = FreeAbelianMonoid {}
Documentation
newtype FreeAbelianMonoid a Source #
Free abelian monoid. Note that `FreeAbelianMonoid () ≅ Natural` as expected.
It is a monad on the full subcategory which satisfies the Ord constraint,
but base does not allow to define a functor / applicative / monad
instances which are constraint by a class.
Constructors
| FreeAbelianMonoid | |
Fields | |