semigroups-0.1.0: Haskell 98 semigroups

Portabilityportable
Stabilityprovisional
MaintainerEdward Kmett <ekmett@gmail.com>

Data.Semigroup

Description

 

Documentation

class Semigroup a whereSource

Methods

(<>) :: a -> a -> aSource

fold1 :: Foldable f => f a -> aSource

newtype Min a Source

Constructors

Min 

Fields

getMin :: a
 

Instances

Ord a => Semigroup (Min a) 

newtype Max a Source

Constructors

Max 

Fields

getMax :: a
 

Instances

Ord a => Semigroup (Max a) 

newtype Option a Source

Constructors

Option 

Fields

runOption :: Maybe a
 

Instances

Eq a => Eq (Option a) 
Ord a => Ord (Option a) 
Read a => Read (Option a) 
Show a => Show (Option a) 
Semigroup a => Monoid (Option a) 
Semigroup a => Semigroup (Option a) 

newtype WrappedMonoid m Source

Constructors

WrapMonoid 

Fields

unwrapMonoid :: m