| Safe Haskell | Trustworthy |
|---|---|
| Language | Haskell2010 |
Data.Semigroup.Union
Synopsis
- module Data.Semigroup.Reducer
- class HasUnion f where
- union :: f -> f -> f
- class HasUnion f => HasUnion0 f where
- empty :: f
- newtype Union f = Union {
- getUnion :: f
- class Functor f => HasUnionWith (f :: Type -> Type) where
- unionWith :: (a -> a -> a) -> f a -> f a -> f a
- class HasUnionWith f => HasUnionWith0 (f :: Type -> Type) where
- emptyWith :: f a
- newtype UnionWith (f :: Type -> Type) m = UnionWith {
- getUnionWith :: f m
Documentation
module Data.Semigroup.Reducer
Unions of Containers
class HasUnion f where Source #
Instances
class HasUnion f => HasUnion0 f where Source #
Instances
| HasUnion0 IntSet Source # | |
Defined in Data.Semigroup.Union | |
| HasUnion0 (IntMap a) Source # | |
Defined in Data.Semigroup.Union | |
| Ord a => HasUnion0 (Set a) Source # | |
Defined in Data.Semigroup.Union | |
| (Eq a, Hashable a) => HasUnion0 (HashSet a) Source # | |
Defined in Data.Semigroup.Union | |
| Eq a => HasUnion0 [a] Source # | |
Defined in Data.Semigroup.Union | |
| Ord k => HasUnion0 (Map k a) Source # | |
Defined in Data.Semigroup.Union | |
| (Eq k, Hashable k) => HasUnion0 (HashMap k a) Source # | |
Defined in Data.Semigroup.Union | |
Instances
Unions of Containers of Semigroups
class Functor f => HasUnionWith (f :: Type -> Type) where Source #
Polymorphic containers that we can supply an operation to handle unions with
Instances
| HasUnionWith IntMap Source # | |
| Ord k => HasUnionWith (Map k) Source # | |
| (Eq k, Hashable k) => HasUnionWith (HashMap k) Source # | |
class HasUnionWith f => HasUnionWith0 (f :: Type -> Type) where Source #
Instances
| HasUnionWith0 IntMap Source # | |
Defined in Data.Semigroup.Union | |
| Ord k => HasUnionWith0 (Map k) Source # | |
Defined in Data.Semigroup.Union | |
| (Eq k, Hashable k) => HasUnionWith0 (HashMap k) Source # | |
Defined in Data.Semigroup.Union | |
newtype UnionWith (f :: Type -> Type) m Source #
Constructors
| UnionWith | |
Fields
| |