[GHC] #7454: Missing warning about redundant import of classes/types whose members are used
GHC
cvs-ghc at haskell.org
Tue Nov 27 21:12:34 CET 2012
#7454: Missing warning about redundant import of classes/types whose members are
used
-----------------------------+----------------------------------------------
Reporter: EyalLotem | Owner:
Type: bug | Status: new
Priority: normal | Component: Compiler
Version: 7.6.1 | Keywords:
Os: Unknown/Multiple | Architecture: Unknown/Multiple
Failure: None/Unknown | Blockedby:
Blocking: | Related:
-----------------------------+----------------------------------------------
If one module exports a class C(..) with a method m,
and another module imports it via: import Module(C, m)
And then proceeds to use only "m", one would expect to get a warning about
the redundant import of "C", but that does not occur.
Similarly, the same thing happens if one imports a data-type "D", and a
record field "f", and uses only "f". No redundant import warning is issued
on D.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7454>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list