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.
moveMapKey :: Ord k => k -> k -> PatchMapWithMove k vpatch Data.Patch.MapWithMove Make a PatchMapWithMove k v which has the effect of moving the value from the first key k to the second key k, equivalent to:
delete src (maybe map (insert dst) (Map.lookup src map))
nodeInfoMapFrom :: (From k v -> From k v) -> NodeInfo k v -> NodeInfo k vpatch Data.Patch.MapWithMove nodeInfoMapMFrom :: Functor f => (From k v -> f (From k v)) -> NodeInfo k v -> f (NodeInfo k v)patch Data.Patch.MapWithMove Change the From value of a NodeInfo, using a Functor (or Applicative, Monad, etc.) action to get the new value
patchMapWithMove :: Ord k => Map k (NodeInfo k v) -> Maybe (PatchMapWithMove k v)patch Data.Patch.MapWithMove Create a PatchMapWithMove, validating it
patchMapWithMoveInsertAll :: Map k v -> PatchMapWithMove k vpatch Data.Patch.MapWithMove Create a PatchMapWithMove that inserts everything in the given Map
patchMapWithMoveNewElements :: PatchMapWithMove k v -> [v]patch Data.Patch.MapWithMove Returns all the new elements that will be added to the Map.
patchMapWithMoveNewElementsMap :: PatchMapWithMove k v -> Map k vpatch Data.Patch.MapWithMove Return a Map k v with all the inserts/updates from the given PatchMapWithMove k v.
-
patch Data.Patch.MapWithMove Create a PatchMapWithMove 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.
patchThatChangesMap :: (Ord k, Ord v) => Map k v -> Map k v -> PatchMapWithMove k vpatch Data.Patch.MapWithMove Create a PatchMapWithMove that, if applied to the first Map provided, will produce the second Map.
patchThatSortsMapWith :: Ord k => (v -> v -> Ordering) -> Map k v -> PatchMapWithMove k vpatch Data.Patch.MapWithMove Create a PatchMapWithMove 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.