Semigroup-0.0.3: A semigroup

Data.Semigroup

Description

A semigroup is a binary associative operation.

Synopsis

Documentation

class Semigroup a whereSource

A binary operation that must satisfy associativity. Unlike a Monoid, an identity in not essential.

Methods

(.++.) :: a -> a -> aSource

Instances

data Identity a Source

A wrapper used to construct a Semigroup from a Monoid.

(<++>) :: (Applicative f, Semigroup a) => f a -> f a -> f aSource

A binary associative operation lifted into an applicative functor.