We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 16e6af2 commit 3177a95Copy full SHA for 3177a95
src/Data/Patch/Map.hs
@@ -63,6 +63,8 @@ instance Ord k => Patch (PatchMap k v) where
63
Nothing -> Just ()
64
Just _ -> Nothing
65
66
+makeWrapped ''PatchMap
67
+
68
instance FunctorWithIndex k (PatchMap k)
69
instance FoldableWithIndex k (PatchMap k)
70
instance TraversableWithIndex k (PatchMap k) where
@@ -81,5 +83,3 @@ patchMapNewElements (PatchMap p) = catMaybes $ Map.elems p
81
83
-- | Returns all the new elements that will be added to the 'Map'
82
84
patchMapNewElementsMap :: PatchMap k v -> Map k v
85
patchMapNewElementsMap (PatchMap p) = Map.mapMaybe id p
-
-makeWrapped ''PatchMap
0 commit comments