Hello Brian, Wednesday, March 8, 2006, 12:03:27 AM, you wrote:
BH> mycallback :: GUIMonad m => EventInfo -> m EventResult BH> 'm' will have to combine a state monad with the IO monad (so I can use IORef BH> etc if needed). as Ian Lynagh wrote, it's no problem if your monad is IO-based. if FFI by itself don't support this, you can add "liftIO" wrappers: foreign import f :: IO () f_wrapper :: GUIMonad m => m () f_wrapper = liftIO f -- Best regards, Bulat mailto:[EMAIL PROTECTED] _______________________________________________ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users