
6 Apr
2003
6 Apr
'03
5:50 p.m.
Andre W B Furtado wrote:
The following line:
foreign import shutdownHaskellAndExit :: Int -> IO ()
causes a compiler warning: foreign declaration uses deprecated non-standard syntax
Which is the correct way to use a foreign declaration?
The main difference between the latest spec and the old syntax is that a calling convention specifier is now required: foreign import ccall shutdownHaskellAndExit :: Int -> IO () Cheers, Wolfgang