Repository : ssh://darcs.haskell.org//srv/darcs/ghc On branch : master
http://hackage.haskell.org/trac/ghc/changeset/3f34e0913efcc82dd90be56d04c5e57ec60d3677 >--------------------------------------------------------------- commit 3f34e0913efcc82dd90be56d04c5e57ec60d3677 Author: Simon Marlow <[email protected]> Date: Fri Nov 18 12:46:01 2011 +0000 Track #included files for recompilation checking (#4900, #3589) This was pretty straightforward: collect the filenames in the lexer, and add them in to the tcg_dependent_files list that the typechecker collects. Note that we still don't get #included files in the ghc -M output. Since we don't normally lex the whole file in ghc -M, this same mechanism can't be used directly. compiler/main/GHC.hs | 11 ++++++--- compiler/main/HscMain.hs | 41 +++++++++++++++++++++++++++++------- compiler/main/HscTypes.lhs | 21 +++++++++++++++++++ compiler/parser/Lexer.x | 6 +++++ compiler/typecheck/TcRnDriver.lhs | 16 ++++++++++--- compiler/typecheck/TcRnMonad.lhs | 6 +++++ compiler/typecheck/TcRnTypes.lhs | 2 +- 7 files changed, 86 insertions(+), 17 deletions(-) Diff suppressed because of size. To see it, use: git show 3f34e0913efcc82dd90be56d04c5e57ec60d3677 _______________________________________________ Cvs-ghc mailing list [email protected] http://www.haskell.org/mailman/listinfo/cvs-ghc
