Hi,

you'll need to invoke green-card with -i to where your copy of StdDis
is.

(Renaming `sin' is also a good idea, as the generated  stub will clash
with a Prelude function.)

--Sigbjorn

David Elworthy writes:
> I am trying to use green card 0.9 with GHC 2.08 (which I built for sunos
> 4 after titanic efforts).
> 
> With this input file
> -----------------
> module M where
> 
> %fun sin :: Float -> Float
> ------------------
> I get the error
>    parse error on input: "arg1"
> when I ghc the green card output file, which looks like this:
> ----------------
> module M where
> sin :: Float -> Float
> sin (float arg1) =
>   unsafePerformPrimIO(
>      _casm_ ``do {arg1 = %0;
>                      res;
>                      res = sin(arg1);
>                      %r = res ;} while (0);'' arg1 >>= \res ->
>        return ((float res))
> ----------------
> The error is on the third line.
> 
> Is there an answer to this? I notice exactly the same question was asked
> before (msg00294 on the mnailing list), but I can't see any reply to it.
> If I need a better version of green card, where can I get it/when will
> it appear?
> 
> -- David
> 
> _______________________________________________________________________
> David Elworthy <[EMAIL PROTECTED]>
> Canon Research Centre Europe Ltd., Guildford, Surrey, UK
> URL: http://www.cre.canon.co.uk/
> Phone: +44 1483 448844; Fax: +44 1483 448845

Reply via email to