Unused packages incorrect warns on strict package when using Data.Strict.Maybe
Summary
Seeing a warning:
<no location info>: error: [-Wunused-packages, -Werror=unused-packages]
The following packages were specified via -package or -package-id flags,
but were not needed for compilation:
- strict-0.4.0.1
but if I remove that package I get:
Could not load module ‘Data.Strict.Maybe’
It is a member of the hidden package ‘strict-0.4.0.1’.
|
16 | import Data.Strict.Maybe (Maybe, fromMaybe)
Steps to reproduce
- Trivial package that uses
Data.Strict.Maybe
- Uses
-Wunused-packages
in the cabal file.
Expected behavior
I am using a module provided by Data.Strict.Maybe
should there should be no warning.
Environment
- GHC version used: 8.10.4
Optional:
- Operating System: Linux
- System Architecture: x86_64