Skip to content

Commit 3177a95

Browse files
committed
Reorder TH statements for ghc 9.0 compatibility
1 parent 16e6af2 commit 3177a95

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Data/Patch/Map.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ instance Ord k => Patch (PatchMap k v) where
6363
Nothing -> Just ()
6464
Just _ -> Nothing
6565

66+
makeWrapped ''PatchMap
67+
6668
instance FunctorWithIndex k (PatchMap k)
6769
instance FoldableWithIndex k (PatchMap k)
6870
instance TraversableWithIndex k (PatchMap k) where
@@ -81,5 +83,3 @@ patchMapNewElements (PatchMap p) = catMaybes $ Map.elems p
8183
-- | Returns all the new elements that will be added to the 'Map'
8284
patchMapNewElementsMap :: PatchMap k v -> Map k v
8385
patchMapNewElementsMap (PatchMap p) = Map.mapMaybe id p
84-
85-
makeWrapped ''PatchMap

0 commit comments

Comments
 (0)