
-----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-----