Major patch to fix reporting of unused imports
authorsimonpj@microsoft.com <unknown>
Mon, 6 Jul 2009 11:25:03 +0000 (11:25 +0000)
committersimonpj@microsoft.com <unknown>
Mon, 6 Jul 2009 11:25:03 +0000 (11:25 +0000)
commit7bb3d1fc79521d591cd9f824893963141a7997b6
tree144f5a2a707f6b2137791049074d47bbb854d4ff
parentd436c70d43fb905c63220040168295e473f4b90a
Major patch to fix reporting of unused imports

This patch, joint work between and Ian and Simon, fixes Trac #1074
by reporting unused import declarations much more accuratly than
before.  The specification is described at

http://hackage.haskell.org/trac/ghc/wiki/Commentary/Compiler/UnusedImports

The implementation is both easier to understand than before, and shorter
too.

Also fixed are #1148, #2267

Also fixed is -ddump-minimal imports, which now works properly, fixing
Trac #1792.
compiler/hsSyn/HsImpExp.lhs
compiler/main/HscMain.lhs
compiler/rename/RnEnv.lhs
compiler/rename/RnNames.lhs
compiler/typecheck/TcRnDriver.lhs
compiler/typecheck/TcRnMonad.lhs
compiler/typecheck/TcRnTypes.lhs