deprecated non-standard syntax
Sun, 6 Apr 2003 20:40:25 +0100
On Sunday 06 April 2003 04:50, Andre W B Furtado wrote:
> The following line:
> foreign import shutdownHaskellAndExit :: Int -> IO ()
> causes a compiler warning: foreign declaration uses deprecated non-standard
> Which is the correct way to use a foreign declaration?
AFAIK ghc syntax is pretty much in line with the latest ffi spec
(version 8 I think). My foreign imports tend to look something
foreign import ccall unsafe "c_function_name"
HaskellFunctionName :: <whatever>