monoid-extras-0.6.1: 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-Inferred
LanguageHaskell2010

Data.Monoid.WithSemigroup

Description

Convenience alias for the combination of Monoid and Semigroup constraints.

Synopsis

Documentation

type Monoid' = Monoid 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.