Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Documentation
class Semigroup a => Monoid a where Source #
When providing a new instance, you should ensure it satisfies the two laws: * Right absorption: unit <> x ≡ x * Left absorption: x <> unit ≡ x
Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
class Semigroup a => Monoid a where Source #
When providing a new instance, you should ensure it satisfies the two laws: * Right absorption: unit <> x ≡ x * Left absorption: x <> unit ≡ x