[Haskell] ANNOUNCE: X Haskell Bindings 0.1

Antoine Latter aslatter at gmail.com
Sun Feb 8 15:46:06 EST 2009

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

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)


> 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/


More information about the Haskell mailing list