Skip to content

Commit 60dfb0c

Browse files
committed
Inhibit -Wnoncanonical-monadfail-instances for GHC 8.8+
It's an obsolete warning for GHC 8.8+
1 parent 76c8205 commit 60dfb0c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

parsec.cabal

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,9 @@ library
8787

8888
ghc-options: -Wall
8989
if impl(ghc >= 8.0)
90-
ghc-options: -Wcompat -Wnoncanonical-monad-instances -Wnoncanonical-monadfail-instances -Wno-trustworthy-safe
90+
ghc-options: -Wcompat -Wnoncanonical-monad-instances -Wno-trustworthy-safe
91+
if impl(ghc < 8.8)
92+
ghc-options: -Wnoncanonical-monadfail-instances
9193
else
9294
-- provide/emulate `Control.Monad.Fail` and `Semigroup` API for pre-GHC8
9395
build-depends: fail == 4.9.*, semigroups >= 0.18 && < 0.20

0 commit comments

Comments
 (0)