Hello Rafal, Monday, October 5, 2009, 9:18:30 AM, you wrote:
> Is there a neat way to have c2hs generate the FunPtr version for me? from my program: -- |My callback function type type CALLBACK_FUNC = Ptr CChar -> IO CInt foreign import ccall threadsafe "wrapper" mkCALL_BACK :: CALLBACK_FUNC -> IO (FunPtr CALLBACK_FUNC) key word here is "wrapper" in foreign import statement. read FFI specs for that -- Best regards, Bulat mailto:bulat.zigans...@gmail.com _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe