Safe Haskell | None |
---|---|
Language | Haskell98 |
Synopsis
- newtype PatchMap k v = PatchMap {
- unPatchMap :: Map k (Maybe v)
- patchMapNewElements :: PatchMap k v -> [v]
- patchMapNewElementsMap :: PatchMap k v -> Map k v
Documentation
A set of changes to a Map
. Any element may be inserted/updated or
deleted. Insertions are represented as values wrapped in Just
, while
deletions are represented as Nothing
s
PatchMap | |
|
Instances
FunctorWithIndex k (PatchMap k) Source # | |
Defined in Data.Patch.Map | |
FoldableWithIndex k (PatchMap k) Source # | |
TraversableWithIndex k (PatchMap k) Source # | |
Defined in Data.Patch.Map itraverse :: Applicative f => (k -> a -> f b) -> PatchMap k a -> f (PatchMap k b) # itraversed :: IndexedTraversal k (PatchMap k a) (PatchMap k b) a b # | |
Functor (PatchMap k) Source # |
|
Foldable (PatchMap k) Source # | |
Defined in Data.Patch.Map fold :: Monoid m => PatchMap k m -> m # foldMap :: Monoid m => (a -> m) -> PatchMap k a -> m # foldr :: (a -> b -> b) -> b -> PatchMap k a -> b # foldr' :: (a -> b -> b) -> b -> PatchMap k a -> b # foldl :: (b -> a -> b) -> b -> PatchMap k a -> b # foldl' :: (b -> a -> b) -> b -> PatchMap k a -> b # foldr1 :: (a -> a -> a) -> PatchMap k a -> a # foldl1 :: (a -> a -> a) -> PatchMap k a -> a # toList :: PatchMap k a -> [a] # null :: PatchMap k a -> Bool # length :: PatchMap k a -> Int # elem :: Eq a => a -> PatchMap k a -> Bool # maximum :: Ord a => PatchMap k a -> a # minimum :: Ord a => PatchMap k a -> a # | |
Traversable (PatchMap k) Source # | |
(Eq k, Eq v) => Eq (PatchMap k v) Source # | |
(Ord k, Ord v) => Ord (PatchMap k v) Source # | |
Defined in Data.Patch.Map | |
(Ord k, Read k, Read v) => Read (PatchMap k v) Source # | |
(Show k, Show v) => Show (PatchMap k v) Source # | |
Ord k => Semigroup (PatchMap k v) Source # |
|
Ord k => Monoid (PatchMap k v) Source # | The empty |
Wrapped (PatchMap k v) Source # | |
Ord k => DecidablyEmpty (PatchMap k v) Source # | |
Ord k => Patch (PatchMap k v) Source # | Apply the insertions or deletions to a given |
Defined in Data.Patch.Map type PatchTarget (PatchMap k v) :: Type Source # apply :: PatchMap k v -> PatchTarget (PatchMap k v) -> Maybe (PatchTarget (PatchMap k v)) Source # | |
PatchMap k1 v1 ~ t => Rewrapped (PatchMap k2 v2) t Source # | |
Defined in Data.Patch.Map | |
type Unwrapped (PatchMap k v) Source # | |
Defined in Data.Patch.Map | |
type PatchTarget (PatchMap k v) Source # | |
Defined in Data.Patch.Map |
patchMapNewElements :: PatchMap k v -> [v] Source #
Returns all the new elements that will be added to the Map