How to find out the C type signature corresponding to a Haskell function type in FFI?

Simon Marlow simonmar at microsoft.com
Fri Mar 10 05:58:53 EST 2006


On 09 March 2006 16:39, Bulat Ziganshin wrote:

> 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
> 
>> Yes, and to give a concrete example:  HsInt and int are different
>> types on x86_64 (and most other 64-bit C implementations).
> 
> yes, it's better to use "Int" and "long" types :)

I hope that smiley means you're joking...

Cheers,
	Simon


More information about the Glasgow-haskell-users mailing list