[Haskell-cafe] FFI basics

Bulat Ziganshin bulat.ziganshin at gmail.com
Sat Feb 10 04:52:49 EST 2007

Hello Donald,

Saturday, February 10, 2007, 11:21:58 AM, you wrote:

>> foreign import ccall "mysin.h mysin"
>>   c_mysin :: Double -> Double

> Shouldn't that be CDouble? At least for Int/CInt you can hit troubles on
> 64 bit machines...

conceptually - yes. practically, it should be the same for all current
platforms. of course, for maintained programs it's better to use safer

Best regards,
 Bulat                            mailto:Bulat.Ziganshin at gmail.com

More information about the Haskell-Cafe mailing list