Inhibit -Wnoncanonical-monadfail-instances for GHC 8.8+ master
authorHerbert Valerio Riedel <hvr@gnu.org>
Tue, 2 Jul 2019 17:08:47 +0000 (19:08 +0200)
committerHerbert Valerio Riedel <hvr@gnu.org>
Tue, 2 Jul 2019 17:08:47 +0000 (19:08 +0200)
It's an obsolete warning for GHC 8.8+

parsec.cabal

index 2b35141..aae6781 100644 (file)
@@ -87,7 +87,9 @@ library
 
     ghc-options: -Wall
     if impl(ghc >= 8.0)
-        ghc-options: -Wcompat -Wnoncanonical-monad-instances -Wnoncanonical-monadfail-instances -Wno-trustworthy-safe
+        ghc-options: -Wcompat -Wnoncanonical-monad-instances -Wno-trustworthy-safe
+        if impl(ghc < 8.8)
+          ghc-options: -Wnoncanonical-monadfail-instances
     else
         -- provide/emulate `Control.Monad.Fail` and `Semigroup` API for pre-GHC8
         build-depends: fail == 4.9.*, semigroups >= 0.18 && < 0.20