Skip to content

Warning -fwarn-unused-imports does not go away

When I compile the attached file, where I only want to
import the instance declarations of the module
Control.Monad.Reader, I still get an error with the
flag -fwarn-unused-imports, even though this idiom is
regarded OK according to the user manual.

So, I would like GHC not to report this warning even
with -fwarn-unused-imports.

/Koen Claessen
Trac metadata
Trac field Value
Version None
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution ResolvedFixed
Component Compiler
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information