[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 09:38:49 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):

 I think Lemming's complaint is that the error message isn't right.  We
 don't want to import instances, but we still need `import Prelude ()`.  So
 the suggestion is right but the reason is wrong.

 A good point.  But as you say, a corner case.

 Simon

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



More information about the Glasgow-haskell-bugs mailing list