on develop help sign in
More Semigroup superclasses for old GHC
commit269dcb0d9e287a26f5799cedc113d4320486127d authorJohn Ericson <John.Ericson@Obsidian.Systems> dateThu 23 Jan 2020, 13:00 (7 years ago) parentecc8511
1 file changed+4−1
src/Data/Patch/MapWithPatchingMove.hs+4−1
src/Data/Patch/MapWithPatchingMove.hs+4−1
@@ -287,7 +287,7 @@ data Fixup k v
287287-- | Compose patches having the same effect as applying the patches in turn:
288288-- @'applyAlways' (p <> q) == 'applyAlways' p . 'applyAlways' q@
289289instance ( Ord k
290−#if !MIN_VERSION_base(4,10,0)
290+#if !MIN_VERSION_base(4,11,0)
291291 , Semigroup p
292292#endif
293293 , Monoid p
@@ -349,6 +349,9 @@ instance ( Ord k
349349-- | Compose patches having the same effect as applying the patches in turn:
350350-- @'applyAlways' (p <> q) == 'applyAlways' p . 'applyAlways' q@
351351instance ( Ord k
352+#if !MIN_VERSION_base(4,11,0)
353+ , Semigroup p
354+#endif
352355 , Monoid p
353356 , DecidablyEmpty p
354357 , Patch p