[GHC] #7145: Incorrect redundant import warning
GHC
cvs-ghc at haskell.org
Tue Aug 14 18:20:37 CEST 2012
#7145: Incorrect redundant import warning
---------------------------------+------------------------------------------
Reporter: edsko | Owner:
Type: bug | Status: patch
Priority: normal | Milestone: 7.8.1
Component: Compiler | Version: 7.4.2
Keywords: | Os: Unknown/Multiple
Architecture: Unknown/Multiple | Failure: None/Unknown
Difficulty: Unknown | Testcase:
Blockedby: | Blocking:
Related: |
---------------------------------+------------------------------------------
Changes (by pcapriotti):
* status: new => patch
* difficulty: => Unknown
* milestone: => 7.8.1
Comment:
The problem is that constructors/methods exported as children of a type or
class are not currently considered used.
Attached is a patch that fixes that in the case of unqualified exported
entities. For qualified entities, the subordinate names can shadow other
reader names (as the test case `T7145b` shows), so we don't add it.
Since the import has to be qualified, anyway, in that case, this should
not matter.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7145#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list