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
RE: Green Card and calling Haskell from C
Sigbjorn Finne (Intl Vendor) Thu, 3 Dec 1998 14:17:05 +0100 (MET)
- Green Card and calling Haskell from C Graeme E Moss
- Sigbjorn Finne (Intl Vendor)