[GHC] #4900: DEPENDS pragma
GHC
cvs-ghc at haskell.org
Fri Nov 18 17:04:11 CET 2011
#4900: DEPENDS pragma
------------------------------+---------------------------------------------
Reporter: cdsmith | Owner:
Type: feature request | Status: new
Priority: high | Milestone: 7.4.1
Component: Build System | Version:
Resolution: | Keywords:
Testcase: TH_Depends | Blockedby:
Difficulty: | Os: Unknown/Multiple
Blocking: | Architecture: Unknown/Multiple
Failure: None/Unknown |
------------------------------+---------------------------------------------
Comment(by marlowsd@…):
commit 3f34e0913efcc82dd90be56d04c5e57ec60d3677
{{{
Author: Simon Marlow <marlowsd at gmail.com>
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(-)
}}}
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4900#comment:35>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list