[Haskell-cafe] ANNOUNCE: X Haskell Bindings 0.1

Don Stewart dons at galois.com
Sun Feb 8 15:47:10 EST 2009


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


More information about the Haskell-Cafe mailing list