-----BEGIN PGP SIGNED MESSAGE-----

Hello,

I have a problem using green-card with ghc-3.02 on a Linux system. 
green-card works fine and produces a .hs output file (foo.hs) . When I
try to compile it with ghc -c foo.hs -cpp -Wall, I get errors in the
functions generated by green-card:

(this is not a green-card example but code copied from the ghc users
guide)

M.hs:8:19: parse error on input: "`"

and the line is:

oldGetEnv name
        = _casm_ ``%r = getenv((char *) %0);'' name >>= \ litstring@(A#
                ^^^^
                being the culprit
str#) ->
          return (
              if (litstring == ``NULL'') then
                  Left ("Fail:oldGetEnv:"++name)
              else
                  Right (unpackCString# str#)
          )


I searched the documentation but could not find a hint. Any help would
be greatly appreciated




- ------------------------------------------------------------------------
Ralf Comtesse                        e-Mail: [EMAIL PROTECTED]
Gipsstrasse 15                       Tel: +49-30-28599230
10119 Berlin                         Fax: +49-30-28599231
Member of the Cetus Team. For OO links visit: http://www.cetus-links.org
- ------------------------------------------------------------------------

-----BEGIN PGP SIGNATURE-----
Version: 2.6.3ia
Charset: noconv

iQB1AwUBNhaQoA+XSzNOWOS5AQH29gMAzMzGflgXw72s7N75gehXL+WX9ds3W6ac
hgrhreqJcdhbr5zNNJ/n40iLMtOY8hHYHX0P7MHpFmjoqVVNysusOO2skUBm1rXn
otJl+HWEUvjYoM4TXHrbU18t+Uy36zxE
=TC3t
-----END PGP SIGNATURE-----

Reply via email to