HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

Modulemonoid-subclasses-1.2.5.1Haskell2010

Data.Monoid.Cancellative

This module defines the Monoid => CommutativeMonoid => ReductiveMonoid => CancellativeMonoid constraint synonym hierarchy.

Since most practical monoids in Haskell are not commutative, the last two of these synonyms have two symmetric superclasses each:

This module and its constraint synonyms are provided for compatibility with the older versions of the monoid-sublasses library. Starting with version 1.0, the classes from the Data.Semigroup.Cancellative module are recommended instead.

  • 7 types

Symmetric, commutative monoid classes

3 declarations

Asymmetric monoid classes

4 declarations