6 Sep
2004
6 Sep
'04
10:01 p.m.
"Daniel Müller" <danielmu@gmx.de> 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 \__/ qrczak@knm.org.pl ^^ http://qrnik.knm.org.pl/~qrczak/