need help with ffi function pointers

David Sankel camio at yahoo.com
Sun Mar 2 14:59:31 EST 2003


--- Wolfgang Thaller <wolfgang.thaller at gmx.net> wrote:
> foreign import ccall "wrapper" mkCallback :: IO ()
> -> FunPtr (IO ())

Answering my own question, this should be:

foreign import ccall "wrapper" mkCallback :: IO () ->
  IO( FunPtr (IO ()) )


David J. Sankel



More information about the FFI mailing list