Skip to content
Snippets Groups Projects
Commit 4282bfeb authored by Phil de Joux's avatar Phil de Joux
Browse files

Only enable -Wunused-packages when ghc >=9

parent ca2a6add
No related branches found
No related tags found
No related merge requests found
......@@ -59,7 +59,9 @@ library
if impl(ghc >= 8.0) && impl(ghc < 8.8)
ghc-options: -Wnoncanonical-monadfail-instances
if impl(ghc >= 8.10)
-- Warning: even though introduced with GHC 8.10, -Wunused-packages gives
-- false positives with GHC 8.10.
if impl(ghc >= 9)
ghc-options: -Wunused-packages
build-tool-depends: alex:alex
......
......@@ -65,7 +65,9 @@ library
if impl(ghc >= 8.0) && impl(ghc < 8.8)
ghc-options: -Wnoncanonical-monadfail-instances
if impl(ghc >= 8.10)
-- Warning: even though introduced with GHC 8.10, -Wunused-packages gives
-- false positives with GHC 8.10.
if impl(ghc >= 9)
ghc-options: -Wunused-packages
exposed-modules:
......
......@@ -40,10 +40,12 @@ library
-Wall -Wcompat -Wnoncanonical-monad-instances
-fwarn-tabs -fwarn-incomplete-uni-patterns
if impl(ghc <8.8)
if impl(ghc < 8.8)
ghc-options: -Wnoncanonical-monadfail-instances
if impl(ghc >=8.10)
-- Warning: even though introduced with GHC 8.10, -Wunused-packages gives
-- false positives with GHC 8.10.
if impl(ghc >= 9)
ghc-options: -Wunused-packages
exposed-modules:
......
......@@ -51,9 +51,9 @@ common warnings
if impl(ghc < 8.8)
ghc-options: -Wnoncanonical-monadfail-instances
if impl(ghc >=9.0)
-- Warning: even though introduced with GHC 8.10, -Wunused-packages
-- gives false positives with GHC 8.10.
-- Warning: even though introduced with GHC 8.10, -Wunused-packages gives
-- false positives with GHC 8.10.
if impl(ghc >= 9)
ghc-options: -Wunused-packages
common base-dep
......
......@@ -3,7 +3,9 @@ program-options
-fno-ignore-asserts
-Werror
if impl(ghc >= 8.10)
-- Warning: even though introduced with GHC 8.10, -Wunused-packages gives false
-- positives with GHC 8.10.
if impl(ghc >= 9)
program-options
ghc-options: -Wunused-packages
package cabal-testsuite
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment