Home
Reading
Searching
Subscribe
Sponsors
Statistics
Posting
Contact
Spam
Lists
Links
About
Hosting
Filtering
Features Download
Marketing
Archives
FAQ
Blog
 
Gmane
From: Antoine Latter <aslatter <at> gmail.com>
Subject: ANNOUNCE: X Haskell Bindings 0.1
Newsgroups: gmane.comp.lang.haskell.cafe
Date: Sunday 8th February 2009 20:46:06 UTC (over 8 years ago)
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
 
CD: 54ms