Re: C.Types
Marcin 'Qrczak' Kowalczyk <[email protected]> Mon, 06 Sep 2004 16:01:26 +0200
| Newsgroups | gmane.comp.lang.haskell.ffi |
|---|---|
| Message-ID | <[email protected]> |
"Daniel Müller" <[email protected]> writes: > foreign import ccall calc :: CInt -> CInt -> CInt > > calculate :: Int -> Int -> CalcType > calculate a b > | ... > | ... > | otherwise = calc a b > > > Unfortunately I got an error. What shall I do? Use fromIntegral to convert between CInt and Int, and something for CalcType depending on what it is. (It would help if you told *what* error, but I guessed.) -- __("< Marcin Kowalczyk \__/ [email protected] ^^ http://qrnik.knm.org.pl/~qrczak/