ANNOUNCE: X Haskell Bindings 0.1

I'd like to announce a version bump for the X Haskell Bindings (XHB) library, to 0.1.* from 0.0.*. The goal of XHB is to provide a Haskell implementation of the X11 wire protocol, similar in spirit to the X protocol C-language Binding (XCB). On Hackage: http://hackage.haskell.org/cgi-bin/hackage-scripts/package/xhb This release focuses on making the API a bit friendlier: + 'type BOOL = Word8' has been replaced in the API by Prelude.Bool + type synonyms BYTE, CARD8, CARD16 and CARD32 for the Data.Word types have been eliminated + type synonyms INT8, INT16 and INT32 for the Data.Int types have been eliminated + Previously, all protocol replies were represented by their own distinct data type. Now, if the reply to a request only includes a single field, the request returns that field directly. In more concrete terms:
internAtom :: Connection -> InternAtom -> IO (Receipt InternAtomReply)
becomes:
internAtom :: Connection -> InternAtom -> IO (Receipt ATOM)
Further work to make the API more "Haskelly" is ongoing. Related projects: X C Bindings: http://xcb.freedesktop.org/ -Antoine

aslatter:
I'd like to announce a version bump for the X Haskell Bindings (XHB) library, to 0.1.* from 0.0.*.
The goal of XHB is to provide a Haskell implementation of the X11 wire protocol, similar in spirit to the X protocol C-language Binding (XCB).
On Hackage: http://hackage.haskell.org/cgi-bin/hackage-scripts/package/xhb
This release focuses on making the API a bit friendlier:
+ 'type BOOL = Word8' has been replaced in the API by Prelude.Bool
+ type synonyms BYTE, CARD8, CARD16 and CARD32 for the Data.Word types have been eliminated
+ type synonyms INT8, INT16 and INT32 for the Data.Int types have been eliminated
+ Previously, all protocol replies were represented by their own distinct data type. Now, if the reply to a request only includes a single field, the request returns that field directly.
In more concrete terms:
internAtom :: Connection -> InternAtom -> IO (Receipt InternAtomReply)
becomes:
internAtom :: Connection -> InternAtom -> IO (Receipt ATOM)
Further work to make the API more "Haskelly" is ongoing.
Related projects:
X C Bindings: http://xcb.freedesktop.org/
Well done! Have a distro package, http://aur.archlinux.org/packages.php?ID=23765 -- Don

On Sun, Feb 8, 2009 at 2:46 PM, Antoine Latter
I'd like to announce a version bump for the X Haskell Bindings (XHB) library, to 0.1.* from 0.0.*.
The goal of XHB is to provide a Haskell implementation of the X11 wire protocol, similar in spirit to the X protocol C-language Binding (XCB).
On a related note, I don't think I've ever formally announce my xcb-types library: http://hackage.haskell.org/cgi-bin/hackage-scripts/package/xcb-types The goal of this project is to provide a parser for the X11 Protocol descriptions used by the XCB project. This is probably a bit specialized of a library, so I doubt I'll be announcing future releases as widely. The XML files that this is built to parse are available at: http://xcb.freedesktop.org/dist/ in the xcb-proto-X.X.tar.gz files. This library is among those required to build the source distribution for the XHB library. -Antoine
participants (2)
-
Antoine Latter
-
Don Stewart