On 4/16/07, <b class="gmail_sendername">Isaac Dupree</b> <<a href="mailto:isaacdupree@charter.net">isaacdupree@charter.net</a>> 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__ >= 603<br>#include "ghcconfig.h"<br>#else<br>#include "config.h"<br>#endif<br><br>If that "else" is modified to only trigger if we'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't know how to do, I actually just deleted the line<br>#include "config.h"<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> Dinko<br><br>