#5112: Incorrect warnings about unqualified imports being redundant
-----------------------------------------------+----------------------------
 Reporter:  sciolizer                          |          Owner:                
     Type:  bug                                |         Status:  closed        
 Priority:  normal                             |      Component:  Compiler      
  Version:  7.0.2                              |     Resolution:  invalid       
 Keywords:                                     |       Testcase:                
Blockedby:                                     |             Os:  Linux         
 Blocking:                                     |   Architecture:  x86_64 (amd64)
  Failure:  Incorrect warning at compile-time  |  
-----------------------------------------------+----------------------------
Changes (by batterseapower):

  * status:  new => closed
  * resolution:  => invalid


Comment:

 Isn't this warning correct? You don't use any names imported from that
 line. Delete it and your program will still compile!

 If you added a type signature or something that uses the M. syntax e.g.

 {{{
 example :: M.Map Int Int
 }}}

 Then the warning goes away, as it should.

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