HORIZON HASKELLDocslts/ghc-10.0.x8fef28d2026-11-02Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8fef28d · 2026-11-02

Modulemonoid-subclasses-1.2.6.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.

Contents
  1. Symmetric, commutative monoid classes
  2. Asymmetric monoid classes
Synopsis

Symmetric, commutative monoid classes

Asymmetric monoid classes