need help with ffi function pointers

Wolfgang Thaller wolfgang.thaller at gmx.net
Sun Mar 2 17:05:51 EST 2003


David Sankel wrote:

> --- 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 ()) )

Of course. Sorry for posting without thinking... :-/

Cheers,

Wolfgang




More information about the FFI mailing list