
8 Mar
2006
8 Mar
'06
6:20 p.m.
"Brian Hulley"
I've got a Haskell module with the following ffi import:
foreign import ccall duma_init :: Int -> IO Int
However my problem is that I've got no idea what the type signature for the corresponding C function should be,
HsInt duma_init(HsInt arg); Or use int on the C side and CInt on the Haskell side. fromIntegral can be used for converting integers in Haskell. -- __("< Marcin Kowalczyk \__/ qrczak@knm.org.pl ^^ http://qrnik.knm.org.pl/~qrczak/