
Hi,
As far as I know, Yhc doesn't have foreign export - but only Tom can
say for definate.
You can of course use yhi as a library (once the code is finished!) to
give you dynamic calling into Haskell at runtime. I guess thats the
yhc way of doing this.
One thing we were discussing a few days ago is that we need an FFI
test suite for Yhc, since it appears that packedstring fails in the
FFI.
Thanks
Neil
On 8/18/06, Isaac
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
(the only reason I'm trying _this_ is to test if the Yhc implementation of concurrency described on the wiki works properly; Yhc seems to compile foreign import successfully, though I haven't yet tried running the bytecode it generates for that)
- -------- import Foreign.C (CInt) return3 :: IO CInt return3 = return 3 foreign export ccall return3 :: IO CInt main = putStrLn "okay" - --------
I've tried commenting out various combinations of the type-signatures, reordering the definition and the foreign export, making the return be IO or not, () or not... ghc -fffi only complains when I comment out the type-signature on the foreign export line, as expected based on the FFI spec. This is always just yhc -c dying, with various error messages.
Isaac -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFE5a46HgcxvIWYTTURAjBPAKCF8fyuZCrwxOdK4hVsdDljMFWwZwCcCMxh ULKutHs0sNcQreGf86fauC8= =pXnT -----END PGP SIGNATURE----- _______________________________________________ Yhc mailing list Yhc@haskell.org http://www.haskell.org/mailman/listinfo/yhc