Put full ImportDecls in ModSummary instead of just ModuleNames
authorSimon Marlow <marlowsd@gmail.com>
Tue, 2 Dec 2008 13:37:36 +0000 (13:37 +0000)
committerSimon Marlow <marlowsd@gmail.com>
Tue, 2 Dec 2008 13:37:36 +0000 (13:37 +0000)
commit25ed0cf7d4c2fbf9e455405f0a8525e0ae27b4e7
tree4f8771323f84294de1ef53e61fbd8bb2ce294e8f
parent95a05693c2ba2d15c1010a0cb9234484ada447cd
Put full ImportDecls in ModSummary instead of just ModuleNames
... and use it to make ghc -M generate correct cross-package
dependencies when using package-qualified imports (needed for the new
build system).  Since we're already parsing the ImportDecl from the
source file, there seems no good reason not to keep it in the
ModSummary, it might be useful for other things too.
compiler/iface/MkIface.lhs
compiler/main/DriverMkDepend.hs
compiler/main/GHC.hs
compiler/main/HeaderInfo.hs
compiler/main/HscTypes.lhs