Safe Haskell | Trustworthy |
---|---|
Language | Haskell98 |
Synopsis
- module Data.Semigroup.Reducer
- class HasUnion f where
- class HasUnion f => HasUnion0 f where
- newtype Union f = Union {
- getUnion :: f
- class Functor f => HasUnionWith f where
- class HasUnionWith f => HasUnionWith0 f where
- newtype UnionWith f m = UnionWith {
- getUnionWith :: f m
Documentation
module Data.Semigroup.Reducer
Unions of Containers
class HasUnion f where Source #
Instances
HasUnion IntSet Source # | |
Eq a => HasUnion [a] Source # | |
Defined in Data.Semigroup.Union | |
HasUnion (IntMap a) Source # | |
Ord a => HasUnion (Set a) Source # | |
(Eq a, Hashable a) => HasUnion (HashSet a) Source # | |
Ord k => HasUnion (Map k a) Source # | |
(Eq k, Hashable k) => HasUnion (HashMap k a) Source # | |
class HasUnion f => HasUnion0 f where Source #
Instances
HasUnion0 IntSet Source # | |
Defined in Data.Semigroup.Union | |
Eq a => HasUnion0 [a] 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 | |
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
Functor Union Source # | |
Foldable Union Source # | |
Defined in Data.Semigroup.Union fold :: Monoid m => Union m -> m # foldMap :: Monoid m => (a -> m) -> Union a -> m # foldr :: (a -> b -> b) -> b -> Union a -> b # foldr' :: (a -> b -> b) -> b -> Union a -> b # foldl :: (b -> a -> b) -> b -> Union a -> b # foldl' :: (b -> a -> b) -> b -> Union a -> b # foldr1 :: (a -> a -> a) -> Union a -> a # foldl1 :: (a -> a -> a) -> Union a -> a # elem :: Eq a => a -> Union a -> Bool # maximum :: Ord a => Union a -> a # minimum :: Ord a => Union a -> a # | |
Traversable Union Source # | |
Traversable1 Union Source # | |
Foldable1 Union Source # | |
HasUnion f => Reducer f (Union f) Source # | |
Eq f => Eq (Union f) Source # | |
Ord f => Ord (Union f) Source # | |
Read f => Read (Union f) Source # | |
Show f => Show (Union f) Source # | |
HasUnion f => Semigroup (Union f) Source # | |
HasUnion0 f => Monoid (Union 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
Instances
HasUnionWith IntMap Source # | |
Ord k => HasUnionWith (Map k) Source # | |
(Eq k, Hashable k) => HasUnionWith (HashMap k) Source # | |
class HasUnionWith f => HasUnionWith0 f 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 |