I really like that the Haskell FFI is defined at the ABI level, and that
it doesn't need to generate its own stub funtions or whatnot.  I
especially like that it doesn't require having a C compiler installed.
it is a foreign function interface that supports the C calling
convention. If you want a C aware version, that seems like what 'hsc2hs'
is for (as well as some of the more heavyweight stuff out there). then
you can do (#type WINDOW) and (#const KEY_LEFT) and such things in your
haskell code and take the preprocessor and C constructs into account.


John Meacham - ârepetae.netâjohnâ 
FFI mailing list

Reply via email to