Happy bug

Dinko Tenev dinko.tenev at gmail.com
Mon Apr 16 09:39:13 EDT 2007


On 4/16/07, Isaac Dupree <isaacdupree at charter.net> wrote:
>
> The code generated by Alex is perfectly good Haskell98+cpp, except:
>
> #if __GLASGOW_HASKELL__ >= 603
> #include "ghcconfig.h"
> #else
> #include "config.h"
> #endif
>
> If that "else" is modified to only trigger if we're using GHC at all[1],
> then plain C pre-processing[2] makes it run fine in Hugs, too.
>
> [1] (which I don't know how to do, I actually just deleted the line
> #include "config.h"
> from the generated file)
>

Guarding the whole block with #ifdef __GLASGOW_HASKELL__ should do it.



Cheers,

    Dinko
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/glasgow-haskell-users/attachments/20070416/fbe6d5b2/attachment.htm


More information about the Glasgow-haskell-users mailing list