[Haskell-cafe] reactive-banana GLFW-b event register example

Vlad Lopatin madjestic13 at gmail.com
Thu May 8 12:08:52 UTC 2014

Hello List,

I am trying to make the following quasi-code example work:

registerMouseButton :: IO (Event MouseButton)
registerMouseButton = do(addHandler, fire) <- newAddHandler
setMouseButtonCallback $ \button _ -> fire button
fromAddHandler addHandler

According to
looks like it should be something straightforward.

Can somebody show an example of a functional code that registers a key or a
mouse event?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20140508/67f91056/attachment.html>

More information about the Haskell-Cafe mailing list