Michael Hobbs [mailto:[EMAIL PROTECTED]] writes: 
> 
  ....
> 
> On a different topic, I wouldn't mind seeing a ``standard'' foreign
> function interface defined for the language. I would like to have
> my programs compile on any ``Haskell 2 compliant'' compiler without
> having to go through implementation-specific precompilers like
> Green Card. To make the specification simple, I think all that would
> need to be defined is a way to invoke a library routine. (No special
> in-line C code syntax, etc. However, callbacks could be a bear.)
> 

If you haven't already, I'd encourage you to have a look at the
FFI that's being used for the Hugs/GHC system. The spec is available
via the HaskellDirect home page

   http://www.dcs.gla.ac.uk/fp/software/hdirect

It supports static&dynamic call-outs as well as call-ins. 

If this FFI proves to be generally useful, perhaps someone
might propose it (or a variant thereof) for H2, who knows.

--Sigbjorn


Reply via email to