#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 |
------------------------------------------------+---------------------------
Changes (by igloo):
* status: new => closed
* resolution: => wontfix
Comment:
I think the warning is OK in this case: You've explicitly imported the
`Prelude` and then used nothing from it. You need to do
{{{
import Prelude ()
}}}
if you want to explicitly import it (which you need to do to avoid the
name collision), but import nothing from it.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4983#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