-Wunused-packages: not working with base-noprelude
base-noprelude + custom
Prelude results in incorrect warning that
base-noprelude is not needed for compilation.
Steps to reproduce
git clone email@example.com:AlistairB/unused-packages-repro.git
Warning is emitted by ghc:
<no location info>: warning: [-Wunused-packages] The following packages were specified via -package or -package-id flags, but were not needed for compilation: - base-noprelude-22.214.171.124
No warning should be emitted as
base-noprelude is required.
build-depends in the cabal file results in compilation failures due to missing modules as expected.
- GHC version used: 8.10.4
- Cabal version: 3.4
- Operating System: Ubuntu 20.10
- System Architecture: x86
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information