How to find out the C type signature corresponding to a
Haskell function type in FFI?
Bulat Ziganshin
bulat.ziganshin at gmail.com
Thu Mar 9 11:39:01 EST 2006
Hello Simon,
Thursday, March 9, 2006, 5:08:09 PM, you wrote:
>>>for small "home" projects you can even use "Int" and "int" which
>>>would work in most of Haskell implementations
SM> Yes, and to give a concrete example: HsInt and int are different types
SM> on x86_64 (and most other 64-bit C implementations).
yes, it's better to use "Int" and "long" types :)
--
Best regards,
Bulat mailto:Bulat.Ziganshin at gmail.com
More information about the Glasgow-haskell-users
mailing list