Safe Haskell | None |
---|---|
Language | Haskell2010 |
Provides a MergeMap, which is basically a map with
Synopsis
- newtype MergeMap key val = MergeMap {
- getMergeMap :: Map key val
- mergeSingleton :: k -> v -> MergeMap k v
Documentation
newtype MergeMap key val Source #
MergeMap | |
|
Instances
Functor (MergeMap key) Source # | |
Foldable (MergeMap key) Source # | |
Defined in Jordan.Types.Internal.MergeMap fold :: Monoid m => MergeMap key m -> m # foldMap :: Monoid m => (a -> m) -> MergeMap key a -> m # foldMap' :: Monoid m => (a -> m) -> MergeMap key a -> m # foldr :: (a -> b -> b) -> b -> MergeMap key a -> b # foldr' :: (a -> b -> b) -> b -> MergeMap key a -> b # foldl :: (b -> a -> b) -> b -> MergeMap key a -> b # foldl' :: (b -> a -> b) -> b -> MergeMap key a -> b # foldr1 :: (a -> a -> a) -> MergeMap key a -> a # foldl1 :: (a -> a -> a) -> MergeMap key a -> a # toList :: MergeMap key a -> [a] # null :: MergeMap key a -> Bool # length :: MergeMap key a -> Int # elem :: Eq a => a -> MergeMap key a -> Bool # maximum :: Ord a => MergeMap key a -> a # minimum :: Ord a => MergeMap key a -> a # | |
Traversable (MergeMap key) Source # | |
Defined in Jordan.Types.Internal.MergeMap | |
Ord key => IsList (MergeMap key val) Source # | |
(Eq key, Eq val) => Eq (MergeMap key val) Source # | |
(Semigroup val, Ord key) => Semigroup (MergeMap key val) Source # | |
(Semigroup val, Ord key) => Monoid (MergeMap key val) Source # | |
type Item (MergeMap key val) Source # | |
Defined in Jordan.Types.Internal.MergeMap |
mergeSingleton :: k -> v -> MergeMap k v Source #