#2267: Bogus "unused import" warning
-------------------------+--------------------------------------------------
    Reporter:  simonpj   |       Owner:             
        Type:  bug       |      Status:  new        
    Priority:  normal    |   Milestone:  6.10 branch
   Component:  Compiler  |     Version:  6.8.2      
    Severity:  normal    |    Keywords:             
  Difficulty:  Unknown   |    Testcase:             
Architecture:  Unknown   |          Os:  Unknown    
-------------------------+--------------------------------------------------
 In `DsMeta` (in the source code for GHC itself), there's an import
 {{{
   import qualified OccName
 }}}
 With `-fwarn-unused-imports` we get the warning
 {{{
 deSugar/DsMeta.hs:45:0:
     Warning: Module `OccName' is imported, but nothing from it is used,
                except perhaps instances visible in `OccName'
              To suppress this warning, use: import OccName()
 }}}
 But that's wrong: there are several uses of things imported from
 `OccName`.

 I tried to reproduce this in a much smaller program, and failed, so
 something not entirely trivial is happening.  Hence this ticket, to make
 sure we don't forget.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2267>
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