On 4/16/07, <b class="gmail_sendername">Isaac Dupree</b> &lt;<a href="mailto:isaacdupree@charter.net">isaacdupree@charter.net</a>&gt; wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
The code generated by Alex is perfectly good Haskell98+cpp, except:<br><br>#if __GLASGOW_HASKELL__ &gt;= 603<br>#include &quot;ghcconfig.h&quot;<br>#else<br>#include &quot;config.h&quot;<br>#endif<br><br>If that &quot;else&quot; is modified to only trigger if we&#39;re using GHC at all[1],
<br>then plain C pre-processing[2] makes it run fine in Hugs, too.<br><br>[1] (which I don&#39;t know how to do, I actually just deleted the line<br>#include &quot;config.h&quot;<br>from the generated file)<br></blockquote>
</div><br>Guarding the whole block with #ifdef __GLASGOW_HASKELL__ should do it.<br><br><br><br>Cheers,<br><br>&nbsp;&nbsp;&nbsp; Dinko<br><br>