Re: [GHC] #10637: Cannot suppress "Warning: {-# SOURCE #-} unnecessary in import of ‘A’"
GHC
ghc-devs at haskell.org
Wed Jul 15 15:41:03 UTC 2015
#10637: Cannot suppress "Warning: {-# SOURCE #-} unnecessary in import of ‘A’"
---------------------------------+-----------------------------------------
Reporter: phischu | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 7.10.1
Resolution: | Keywords:
Operating System: Linux | Architecture: x86_64 (amd64)
Type of failure: None/Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Revisions:
---------------------------------+-----------------------------------------
Comment (by simonpj):
Good catch!
Currently -w simply makes the "set of active warning flags" empty. But in
fact there is no flag to control this particular warning (see
`DynFlags.WarningFlag`).
So we must choose:
* Invent a new flag `-fwarn-unnecesary-source-imports", or
* Re-use an existing flag, such as `-fwarn-unused-imports`.
I'm inclined to do the latter; it's hardly a hot topic.
Then
* Modify `GhcMake.warnUnnecessarySourceImports` to check this flag, and
do nothing unless it is set.
This is easy. Would someone like to do it?
Simon
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10637#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list