<p>Where are pragmas treated like comments?</p>
<div class="gmail_quote">On Aug 16, 2012 6:14 AM, &quot;Björn Peemöller&quot; &lt;<a href="mailto:bjp@informatik.uni-kiel.de">bjp@informatik.uni-kiel.de</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Dear cafe,<br>
<br>
I&#39;m experimenting with extending the parser for a Haskell-like language<br>
by module pragmas. The parser is written using parser combinators.<br>
<br>
Currently, I adapted the lexer to ignore whitespace and comments, but<br>
create lexemes for both the pragma start and end (and the pragma&#39;s<br>
content, of course). While these lexemes are necessary for parsing the<br>
pragmas before the module header, they somehow should be ignored<br>
(treated like comments) afterwards.<br>
<br>
Could anyone give me a hint me how this behaviour (treat pragmas like<br>
comments) is achieved in GHC or in haskell-src-exts?<br>
<br>
Thanks in advance,<br>
Björn<br>
<br>
_______________________________________________<br>
Haskell-Cafe mailing list<br>
<a href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br>
</blockquote></div>