reducers-3.10.3.2: Semigroups, specialized containers and a general map/reduce framework

Safe HaskellTrustworthy
LanguageHaskell98

Data.Semigroup.Union

Contents

Synopsis

Documentation

Unions of Containers

class HasUnion f where Source

A Container suitable for the Union Monoid

Methods

union :: f -> f -> f Source

Instances

class HasUnion f => HasUnion0 f where Source

Methods

empty :: f Source

Unions of Containers of Semigroups

class Functor f => HasUnionWith f where Source

Polymorphic containers that we can supply an operation to handle unions with

Methods

unionWith :: (a -> a -> a) -> f a -> f a -> f a Source

newtype UnionWith f m Source

The Monoid ('unionWith mappend',empty) for containers full of monoids.

Constructors

UnionWith 

Fields

getUnionWith :: f m