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

Data.Monoid.WithSemigroup

Description

Convenience alias for the combination of Monoid and Semigroup constraints.

Synopsis

# Documentation

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

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 #