[GHC] #4983: Warning about redundant import is wrong when hiding identifiers in order to avoid export ambiguities

GHC cvs-ghc at haskell.org
Mon Feb 28 11:06:46 CET 2011


#4983: Warning about redundant import is wrong when hiding identifiers in order to
avoid export ambiguities
------------------------------------------------+---------------------------
  Reporter:  Lemming                            |          Owner:                  
      Type:  bug                                |         Status:  closed          
  Priority:  normal                             |      Milestone:                  
 Component:  Compiler                           |        Version:  7.0.1           
Resolution:  wontfix                            |       Keywords:                  
  Testcase:                                     |      Blockedby:                  
Difficulty:                                     |             Os:  Unknown/Multiple
  Blocking:                                     |   Architecture:  Unknown/Multiple
   Failure:  Incorrect warning at compile-time  |  
------------------------------------------------+---------------------------

Comment(by simonpj):

 Well that would apply to any other redundant import too.   I suppose we
 could replace "The import of M is redundant" by "You imported M but used
 nothing of it".  Maybe that'd be an improvement, I'm not sure.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4983#comment:4>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler



More information about the Glasgow-haskell-bugs mailing list