Skip to content

Commit 3e78a72

Browse files
committed
MapWithPatchingMove Patch instance won't get semigroup from older base
1 parent 1bfa6d6 commit 3e78a72

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/Data/Patch/MapWithPatchingMove.hs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,13 +279,17 @@ nodeInfoSetTo
279279
:: To k -> NodeInfo k v -> NodeInfo k v
280280
nodeInfoSetTo to ni = ni { _nodeInfo_to = to }
281281

282-
-- |Helper data structure used for composing patches using the monoid instance.
282+
-- | Helper data structure used for composing patches using the monoid instance.
283283
data Fixup k v
284284
= Fixup_Delete
285285
| Fixup_Update (These (From k v) (To k))
286286

287-
-- |Compose patches having the same effect as applying the patches in turn: @'applyAlways' (p <> q) == 'applyAlways' p . 'applyAlways' q@
287+
-- | Compose patches having the same effect as applying the patches in turn:
288+
-- @'applyAlways' (p <> q) == 'applyAlways' p . 'applyAlways' q@
288289
instance ( Ord k
290+
#if !MIN_VERSION_base(4,10,0)
291+
, Semigroup p
292+
#endif
289293
, Monoid p
290294
, DecidablyEmpty p
291295
, Patch p

0 commit comments

Comments
 (0)