Skip to content

Commit

Permalink
Guard -Wunused-packages with impl(ghc)
Browse files Browse the repository at this point in the history
  • Loading branch information
philderbeast committed Mar 29, 2024
1 parent 52fdef8 commit e4359a7
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion project-cabal/ghc-options.config
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
program-options
ghc-options: -fno-ignore-asserts -Werror -Wunused-packages
ghc-options:
-fno-ignore-asserts
-Werror
if impl(ghc >= 8.10)
-Wunused-packages
endif

if impl(ghc >= 8.10)
package cabal-testsuite
ghc-options: -Wwarn=unused-packages
endif

0 comments on commit e4359a7

Please sign in to comment.