#1074: -fwarn-unused-imports complains about wrong import
----------------------+-----------------------------------------------------
 Reporter:  guest     |          Owner:          
     Type:  bug       |         Status:  new     
 Priority:  normal    |      Milestone:  _|_     
Component:  Compiler  |        Version:  6.6     
 Severity:  minor     |     Resolution:          
 Keywords:            |     Difficulty:  Unknown 
 Testcase:            |   Architecture:  Multiple
       Os:  Multiple  |  
----------------------+-----------------------------------------------------
Comment (by igloo):

 Here's the behaviour I'd like:

 For each use of a variable foo, mark imports
 {{{
 import M (..., foo, ...)
 }}}
 as "used" if any exist; otherwise mark any imports
 {{{
 import M
 }}}
 which export foo as "used". Mark all imports of the form
 {{{
 import M ()
 }}}
 as used.

 Then warn about any imports not marked as "used".

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1074#comment:8>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to