[Haskell-cafe] Disable LINE Pragma handling in GHC

JP Moresmau jpmoresmau at gmail.com
Sun Sep 12 13:52:10 EDT 2010

Users may not want to edit the files directly, but they'll be happy to be
able to open them with proper syntax highlighting, for example.


On Sat, Sep 11, 2010 at 7:57 PM, Henning Thielemann <
schlepptop at henning-thielemann.de> wrote:

> 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?

JP Moresmau
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20100912/e1f04a8c/attachment.html

More information about the Haskell-Cafe mailing list