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

GHC ghc-devs at haskell.org
Wed Sep 4 09:00:32 CEST 2013


#4983: Warning about redundant import is wrong when hiding identifiers in order to
avoid export ambiguities
-------------------------------------------------+-------------------------
        Reporter:  Lemming                       |            Owner:
            Type:  bug                           |           Status:
        Priority:  normal                        |  closed
       Component:  Compiler                      |        Milestone:
      Resolution:  wontfix                       |          Version:  7.0.1
Operating System:  Unknown/Multiple              |         Keywords:
 Type of failure:  Incorrect warning at          |     Architecture:
  compile-time                                   |  Unknown/Multiple
       Test Case:                                |       Difficulty:
        Blocking:                                |  Unknown
                                                 |       Blocked By:
                                                 |  Related Tickets:
-------------------------------------------------+-------------------------

Comment (by simonpj):

 What is wrong with saying
 {{{
 import Prelude ()
 }}}
 You say that "GHC is to blame here" but the warning is quite correct: you
 are using nothing from Prelude, right?

 Specifically, what behaviour would you actually like?

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




More information about the ghc-tickets mailing list