deprecated non-standard syntax

Wolfgang Thaller wolfgang.thaller@gmx.net
06 Apr 2003 23:50:44 +0200


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