1 2 3 4 5
{-# LANGUAGE ForeignFunctionInterface #-} module T where import Foreign foreign import ccall "f" f :: FunPtr (Int -> IO ())