foreign

Koen Claessen koen@cs.chalmers.se
Fri, 10 Aug 2001 11:17:17 +0200 (MET DST)


Hi all,

I am trying to port a library that I have developed using
GHC and GHCi to Hugs. The problem is that it uses the
FFI as specified in the GHC documentation.

Hugs seems to understand the keywords "foreign import", but
seems to give slightly different semantics to it.

My question is: does anybody know what the status of the FFI
is in the latest Hugs? Should I use the "primitive" keywords
instead?

Also, the GHC folks seem to have changed the libraries
Foreign, Ptr, etc. and have made Addr obsolete. Also, they
provide libraries like CForeign.

Is there any hope that Hugs will be compatible with these
changes sometime in the near future?

/Koen.

--
Koen Claessen         http://www.cs.chalmers.se/~koen
phone:+46-31-772 5424      mailto:koen@cs.chalmers.se
-----------------------------------------------------
Chalmers University of Technology, Gothenburg, Sweden