[Haskell-cafe] Disable LINE Pragma handling in GHC

Henning Thielemann schlepptop at henning-thielemann.de
Sat Sep 11 13:57:24 EDT 2010


JP Moresmau schrieb:
> Hello fellow Haskellers,
> 
> In EclipseFP we use the GHC API for IDE related stuff like syntax
> highlighting and code outlines. However, I ran into something funny
> yesterday: when a source file contains LINE pragmas
> (http://www.haskell.org/ghc/docs/6.12.2/html/users_guide/pragmas.html#line-pragma),
> all the locations for tokens are changed to reflect the pragmas
> information.

I thought that files that contain the LINE pragma usually are
automatically generated files. Why would you want to edit or maintain
such files in an IDE?



More information about the Haskell-Cafe mailing list