
hoelz:
Ross Paterson
wrote: Rob Hoelz
wrote: My question is this: Why do the Haskell Xlib bindings have no way to extract the property event from an event pointer?
For example, the following functions are available:
get_KeyEvent, get_ButtonEvent, get_MotionEvent, etc.
but there's no get_PropertyEvent.
Why was this left out? It seems pretty critical to the functionality of an Xlib program to someone who's been programming in C with Xlib for quite some time.
It wasn't left out, it just wasn't put in, like a lot of other things. If you have a list of stuff you need, it can be added.
Actually, I wouldn't mind doing it myself. Are the Haskell libs compiler-specific, or central? Either way, is there a CVS/subversion/git repository I can check out from?
Great! You can get most Haskell software via darcs repositories, (http://darcs.net) , and X11 is no exception: $ darcs get http://darcs.haskell.org/packages/X11 Copying patch 17 of 99... General information for developing Haskell libraries is available here: http://haskell.org/haskellwiki/How_to_write_a_Haskell_program and covers the toolchain and best practices. Cheers, Don