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

Data.Monoid.WithSemigroup

Description

Convenience alias for the combination of Monoid and Semigroup constraints.

Synopsis

# Documentation

type Monoid' = Monoid #

For base < 4.11, the Monoid' constraint is a synonym for things which are instances of both Semigroup and Monoid. For base version 4.11 and onwards, Monoid has Semigroup as a superclass already, so for backwards compatibility Monoid' is provided as a synonym for Monoid.