Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
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.