RE: patch applied (ghc): Adding a GENERATED pragma

Simon Peyton-Jones <[email protected]>
Newsgroups gmane.comp.lang.haskell.cvs.all
Message-ID <DCA83D5F3861C941808187D4D387875037056486__20458.8369968862$1167382961$gmane$org@EA-EXMSG-C312.europe.corp.microsoft.com>
Andy, what's this about?  GHC already understands #LINE pragmas a la cpp. Is that what you wanted?  Your pragma looks more fine-grained than that, I guess.

Simon

| -----Original Message-----
| From: [email protected] [mailto:[email protected]]
| On Behalf Of Andy Gill
| Sent: 29 December 2006 07:36
| To: [email protected]
| Subject: patch applied (ghc): Adding a GENERATED pragma
|
| Thu Dec 28 23:29:48 PST 2006  [email protected]
|   * Adding a GENERATED pragma
|
|   Adding a {-# GENERATED "SourceFile" SourceSpan #-} <expr> pragma.
|   This will be used to generate coverage for tool generated (or quoted)
| code.
|   The pragma states the the expression was generated/quoted from the
| stated
|   source file and source span.
|
|
|     M ./compiler/deSugar/Coverage.lhs -3 +10
|     M ./compiler/deSugar/DsMeta.hs +1
|     M ./compiler/hsSyn/HsExpr.lhs +6
|     M ./compiler/parser/Lexer.x +3
|     M ./compiler/parser/Parser.y.pp -1 +17
|     M ./compiler/rename/RnExpr.lhs +3
|     M ./compiler/typecheck/TcExpr.lhs +3
|     M ./compiler/typecheck/TcHsSyn.lhs +4
|
| _______________________________________________
| Cvs-ghc mailing list
| [email protected]
| http://www.haskell.org/mailman/listinfo/cvs-ghc
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.