3 Mar
2003
3 Mar
'03
3:42 a.m.
--- Wolfgang Thaller <wolfgang.thaller@gmx.net> wrote:
foreign import ccall "wrapper" mkCallback :: IO () -> FunPtr (IO ()) foreign import ccall "f_setCallback" f_setCallback :: FunPtr (IO ()) -> IO ()
setCallback cb = mkCallback cb >>= f_setCallback
Thanks for the help. Is there a ghc bug with wrappers like this? Compiling that code gives me: Unacceptable result type in foreign declaration: FunPtr (IO ()) When checking declaration: foreign import ccall safe "wrapper" mkCallback :: IO () -> FunPtr (IO ()) Thanks, David J. Sankel