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

Copyright(c) 2011 diagrams-core team (see LICENSE)
LicenseBSD-style (see LICENSE)
Maintainerdiagrams-discuss@googlegroups.com
Safe HaskellSafe
LanguageHaskell2010

Data.Monoid.WithSemigroup

Description

Convenience alias for the combination of Monoid and Semigroup constraints.

Synopsis

Documentation

type Monoid' m = (Semigroup m, Monoid m) Source #

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.