Happy bug

Isaac Dupree isaacdupree at charter.net
Mon Apr 16 07:08:48 EDT 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Simon Marlow wrote:
> Thanks for letting me know about the email rejection.
> 
> Cheers,
>     Simon

I got the same when trying to report a bug in alex - did that report get
through to you, or should I send it again? On the other hand, I've just
upgraded my system and the bug seems to be fixed in alex 2.1.0 :).
However, I am including the still-true comment

P.S.
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)

[2] (well, actually I then replaced the cpp-generated line descriptions
with Haskellish ones by
sed 's/^# \(.*\)/{-# LINE \1 #-}/'
; I don't know whether that actually matters)



Isaac
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGI1lAHgcxvIWYTTURAsOgAKDLpTB9G4NtRM14bXEXY6FoW09JPwCgt/IO
auv4ZBdoEJWbODk84E4gcQg=
=OHLY
-----END PGP SIGNATURE-----


More information about the Glasgow-haskell-users mailing list