Possible runtime overhead of wrapping the IO monad?
Brian Hulley
brianh at metamilk.com
Thu Mar 30 08:35:13 EST 2006
Apologies for the syntax/type errors in my last post! :-)
Brian Hulley wrote:
> type RenderCallback :: IO ()
> type KeypressCallback :: IO ()
type RenderCallback = IO ()
type KeypressCallback = Int -> IO ()
> keypress :: IO ()
> keypress = drawPrimitive -- not allowed at this point!!!
keypress :: KeypressCallback
keypress c = drawPrimitive -- not allowed at this point!!
More information about the Glasgow-haskell-users
mailing list