Re: parse error in Hugs98 library

2000-02-04 Thread Malcolm Wallace
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

Re: parse error in Hugs98 library

2000-02-04 Thread Sven Panne
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

parse error in Hugs98 library

2000-02-03 Thread Nick Eby
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