monoid-extras-0.2.2.2: Various extra monoid-related definitions and utilities

Maintainerdiagrams-discuss@googlegroups.com
Safe HaskellSafe-Inferred

Data.Monoid.WithSemigroup

Description

Convenience alias for the combination of Monoid and Semigroup constraints.

Synopsis

Documentation

class (Semigroup m, Monoid m) => Monoid' m Source

The Monoid' class is a synonym for things which are instances of both Semigroup and Monoid. Ideally, the Monoid class itself will eventually include a Semigroup superclass and we can get rid of this.

Instances

(Semigroup m, Monoid m) => Monoid' m