"Brian Hulley" <[EMAIL PROTECTED]> writes:

> 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
   \__/       [EMAIL PROTECTED]
    ^^     http://qrnik.knm.org.pl/~qrczak/
_______________________________________________
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

Reply via email to