- module Data.Semigroup.Reducer
- class HasUnion f where
- union :: f -> f -> f
- empty :: HasUnion0 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 :: HasUnionWith0 f => f a
- newtype UnionWith f m = UnionWith {
- getUnionWith :: f m
Documentation
module Data.Semigroup.Reducer
Unions of Containers
Unions of Containers of Semigroups
class Functor f => HasUnionWith f whereSource
Polymorphic containers that we can supply an operation to handle unions with
HasUnionWith IntMap | |
Ord k => HasUnionWith (Map k) |
UnionWith | |
|