deprecated non-standard syntax

Adrian Hey ahey@iee.org
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
> syntax
>
> Which is the correct way to use a foreign declaration?
>
> Thanks,

AFAIK ghc syntax is pretty much in line with the latest ffi spec
(version 8 I think). My foreign imports tend to look something
like this..

foreign import ccall unsafe "c_function_name"
        HaskellFunctionName :: <whatever>

Regards
--
Adrian Hey