13 Feb
2007
13 Feb
'07
6:49 a.m.
On Tue, Feb 13, 2007 at 12:40:00AM -0600, Rob Hoelz wrote:
I've been pouring over the Xlib bindings for Haskell, and I've come across the following code:
peekXButtonEvent p = do root <- #{peek XButtonEvent,root} p [...] I can't seem to find a definition or an explanation for #{}. Is this some kind of operator for dealing with monads or something?
It's a directive for hsc2hs, a preprocessor that helps glue haskell and C: http://www.haskell.org/ghc/docs/latest/html/users_guide/hsc2hs.html -- Gaal Yahas <gaal@forum2.org> http://gaal.livejournal.com/