[Haskell] The meaning of #{}
Gaal Yahas
gaal at forum2.org
Tue Feb 13 01:49:19 EST 2007
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 at forum2.org>
http://gaal.livejournal.com/
More information about the Haskell
mailing list