Skip to content

Commit 82b59b2

Browse files
committed
CPP out Data.Semigroup.Option for GHC 9.2
1 parent fbc33b5 commit 82b59b2

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

ChangeLog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Revision history for patch
22

3+
## Unreleased
4+
5+
* Support GHC 9.2
6+
37
## 0.0.5.2 - 2022-01-09
48

59
* Correct field order of `PatchMapWithMove.NodeInfo`.

patch.cabal

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,12 @@ flag split-these
3333
library
3434
hs-source-dirs: src
3535
default-language: Haskell2010
36-
build-depends: base >= 4.9 && < 4.16
36+
build-depends: base >= 4.9 && < 4.17
3737
, constraints-extras >= 0.3 && < 0.4
3838
, containers >= 0.6 && < 0.7
3939
, dependent-map >= 0.3 && < 0.5
4040
, dependent-sum >= 0.6 && < 0.8
41-
, lens >= 4.7 && < 5.1
41+
, lens >= 4.7 && < 5.2
4242
, indexed-traversable >= 0.1 && < 0.2
4343
, semigroupoids >= 4.0 && < 6
4444
, transformers >= 0.5.6.0 && < 0.6

src/Data/Monoid/DecidablyEmpty.hs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,10 @@ instance DecidablyEmpty (First a) where
6969
instance DecidablyEmpty (Last a) where
7070
isEmpty (Last a) = isNothing a
7171
deriving instance DecidablyEmpty a => DecidablyEmpty (Identity a)
72+
#if !MIN_VERSION_base(4,16,0)
7273
instance Semigroup a => DecidablyEmpty (Option a) where
7374
isEmpty (Option a) = isNothing a
75+
#endif
7476
deriving instance DecidablyEmpty m => DecidablyEmpty (WrappedMonoid m)
7577
instance (Ord a, Bounded a) => DecidablyEmpty (Max a)
7678
instance (Ord a, Bounded a) => DecidablyEmpty (Min a)

0 commit comments

Comments
 (0)