Skip to content
Snippets Groups Projects
Unverified Commit 3d3622fc authored by Hécate Moonlight's avatar Hécate Moonlight Committed by GitHub
Browse files

Add -Wunused-packages to the packages (#9663)


* Add -Wunused-packages to the packages

Cabal, Cabal-syntax, cabal-install, cabal-install-solver

* Remove unused text dependency

* remove unguarded warning

* Remove 8.10 condition for unused-packages

---------

Co-authored-by: default avatarmergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
parent 0cc59254
No related branches found
No related tags found
No related merge requests found
Pipeline #90047 passed
......@@ -53,6 +53,9 @@ library
if impl(ghc >= 8.0) && impl(ghc < 8.8)
ghc-options: -Wnoncanonical-monadfail-instances
if impl(ghc >= 8.10)
ghc-options: -Wunused-packages
build-tool-depends: alex:alex
exposed-modules:
......
......@@ -59,6 +59,9 @@ library
if impl(ghc >= 8.0) && impl(ghc < 8.8)
ghc-options: -Wnoncanonical-monadfail-instances
if impl(ghc >= 8.10)
ghc-options: -Wunused-packages
exposed-modules:
Distribution.Backpack.Configure
Distribution.Backpack.ComponentsGraph
......@@ -306,7 +309,6 @@ library
-- See also https://github.com/ekmett/transformers-compat/issues/35
transformers (>= 0.3 && < 0.4) || (>=0.4.1.0 && <0.7),
mtl >= 2.1 && < 2.4,
text (>= 1.2.3.0 && < 1.3) || (>= 2.0 && < 2.2),
parsec >= 3.1.13.0 && < 3.2
other-modules:
......
......@@ -42,6 +42,7 @@ library
if impl(ghc <8.8)
ghc-options: -Wnoncanonical-monadfail-instances
if impl(ghc >=8.10)
ghc-options: -Wunused-packages
......
......@@ -40,8 +40,10 @@ Flag lukko
common warnings
ghc-options: -Wall -Wcompat -Wnoncanonical-monad-instances -Wincomplete-uni-patterns -Wincomplete-record-updates
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.
......
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