patch applied (ghc): Adding a GENERATED pragma
andy at galois.com
Fri Dec 29 18:17:54 EST 2006
> LINE can already refer to an external non-.hs file. This is exactly
> things works now with all manner of pre-processors, alex, happy,
> c2hs, hsc2hs, etc.
> I don't quite have an intuition for this yet, can you give an
> example of
> how this more fine grained pragma works and some use-case not
> covered by LINE?
Ahhh. LINE does? Oh.
- GENERATED works on an expression based level, and can specify
(20:4 - 21:8, for example).
- GENERATED is a true pragma; it hints where things come from, but
does not change
the error message. I want the Haskell source spans to remain
But perhaps a variant of LINE would be a better name.
More information about the Cvs-ghc