monoids-0.1.36: Monoids, specialized containers and a general map/reduce frameworkSource codeContentsIndex
Data.Monoid.Union
Contents
Unions of Containers
Unions of Containers of Monoids
Synopsis
module Data.Monoid.Reducer
class HasUnion f where
empty :: f
union :: f -> f -> f
newtype Union f = Union {
getUnion :: f
}
class Functor f => HasUnionWith f where
unionWith :: (a -> a -> a) -> f a -> f a -> f a
emptyWith :: f a
newtype UnionWith f m = UnionWith {
getUnionWith :: f m
}
Documentation
module Data.Monoid.Reducer
Unions of Containers
class HasUnion f whereSource
A Container suitable for the Union Monoid
Methods
empty :: fSource
union :: f -> f -> fSource
show/hide Instances
newtype Union f Source
The Monoid (union,empty)
Constructors
Union
getUnion :: f
show/hide Instances
Unions of Containers of Monoids
class Functor f => HasUnionWith f whereSource
Polymorphic containers that we can supply an operation to handle unions with
Methods
unionWith :: (a -> a -> a) -> f a -> f a -> f aSource
emptyWith :: f aSource
show/hide Instances
newtype UnionWith f m Source
The Monoid ('unionWith mappend',empty) for containers full of monoids.
Constructors
UnionWith
getUnionWith :: f m
show/hide Instances
Produced by Haddock version 2.4.2