Hello fellow Haskellers,<div><br></div><div>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 (<a href="http://www.haskell.org/ghc/docs/6.12.2/html/users_guide/pragmas.html#line-pragma">http://www.haskell.org/ghc/docs/6.12.2/html/users_guide/pragmas.html#line-pragma</a>), all the locations for tokens are changed to reflect the pragmas information. While this is great in the &quot;normal&#39; GHC usage, this is not so great for us, because we&#39;re interested in that source code, not in original code. I haven&#39;t seen any flag to turn that behavior off in the docs, nor in the Lexer code, but have I missed something? Can I tell GHC to just ignore these pragmas? I suppose even using GHC for building and something else (haskell-src-exts?) for code handling would leave us with compilation messages at the wrong place.</div>
<div><br></div><div>Thanks,<br clear="all"><br>-- <br>JP Moresmau<br><a href="http://jpmoresmau.blogspot.com/">http://jpmoresmau.blogspot.com/</a><br>
</div>