Graeme E Moss <[EMAIL PROTECTED]> writes: 
> 
> In the on-line documentation for Green Card at:
> 
> http://www.dcs.gla.ac.uk/fp/software/green-card/users-guide-9.html
> 
> there is the following option for invoking green-card:
> 
> --gc-safe
> 
>     Generates code that can use callbacks to Haskell (GHC 
> only.) This makes the generated code slower.
> 
> Does this allow C to call Haskell?
> 

No, this just generates code that is prepared for
this to happen (using old GHC FFI lingo, the stub code
calls out via _ccall_GC_ )

See the new FFI for mechanisms for calling Haskell functions
from C. (HaskellDirect will provide tool support for the
creation of C interfaces to Haskell libraries in the near
future.)

The HaskellDirect home page has got more info,

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

hth,
--Sigbjorn

Reply via email to