Safe Haskell | Safe |
---|---|
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
Functor (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 |
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 # | |
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