Sven writes:
> > Does ghc have a problem with the 'primitive' declaration? [...]
>
> Exactly. In GHC (and probably already in NHC, too. Malcolm?) you
> have to write
>foreign import unsafe getRandomSeed :: IO Int
Yes, since 1999-11-19, nhc98 also supports the new FFI.
Regards,
Malcolm
Nick Eby wrote:
> In trying to compile the Random library from the hugs98 distribution
> i got the following error:
> Random.hs:205: parse error on input `::'
> Line 205 reads:
> primitive getRandomSeed :: IO Integer
>
> I don't see a syntactic error in this line.
I do. :-)
> Does ghc have a
In trying to compile the Random library from the hugs98 distribution i got
the following error:
Random.hs:205: parse error on input `::'
Line 205 reads:
primitive getRandomSeed :: IO Integer
I don't see a syntactic error in this line. Does ghc have a problem with
the 'primitive' declaration? (th