Hoogle Search
Within LTS Haskell 24.40 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
patchMapKey :: DecidablyEmpty p => k -> p -> PatchMapWithPatchingMove k ppatch Data.Patch.MapWithPatchingMove No documentation available.
patchMapWithPatchingMove :: Ord k => Map k (NodeInfo k p) -> Maybe (PatchMapWithPatchingMove k p)patch Data.Patch.MapWithPatchingMove Create a PatchMapWithPatchingMove, validating it
patchMapWithPatchingMoveInsertAll :: Map k (PatchTarget p) -> PatchMapWithPatchingMove k ppatch Data.Patch.MapWithPatchingMove Create a PatchMapWithPatchingMove that inserts everything in the given Map
patchMapWithPatchingMoveNewElements :: PatchMapWithPatchingMove k p -> [PatchTarget p]patch Data.Patch.MapWithPatchingMove Returns all the new elements that will be added to the Map
patchMapWithPatchingMoveNewElementsMap :: PatchMapWithPatchingMove k p -> Map k (PatchTarget p)patch Data.Patch.MapWithPatchingMove Return a Map k v with all the inserts/updates from the given PatchMapWithPatchingMove k v.
-
patch Data.Patch.MapWithPatchingMove Create a PatchMapWithPatchingMove that, if applied to the first Map provided, will produce a Map with the same values as the second Map but with the values sorted with the given ordering function.
-
patch Data.Patch.MapWithPatchingMove Create a PatchMapWithPatchingMove that, if applied to the first Map provided, will produce the second Map. Note: this will never produce a patch on a value.
-
patch Data.Patch.MapWithPatchingMove Create a PatchMapWithPatchingMove that, if applied to the given Map, will sort its values using the given ordering function. The set keys of the Map is not changed.
swapMapKey :: (DecidablyEmpty p, Patch p, Ord k) => k -> k -> PatchMapWithPatchingMove k ppatch Data.Patch.MapWithPatchingMove Make a PatchMapWithPatchingMove k p which has the effect of swapping two keys in the mapping, equivalent to:
let aMay = Map.lookup a map bMay = Map.lookup b map in maybe id (Map.insert a) (bMay <> aMay) . maybe id (Map.insert b) (aMay <> bMay) . Map.delete a . Map.delete b $ map
unPatchMapWithPatchingMove :: PatchMapWithPatchingMove k p -> Map k (NodeInfo k p)patch Data.Patch.MapWithPatchingMove Extract the internal representation of the PatchMapWithPatchingMove