The library aims to provide a direct translation of the X
binding into Haskell so the most important documentation you
should read is The Xlib Programming Manual, available online at
http://tronche.com/gui/x/xlib/. Let me say that again because
it is very important. Get hold of this documentation and read it:
it tells you almost everything you need to know to use this library.

Conventions

In translating the library, we had to change names to conform with
Haskell's lexical syntax: function names and names of constants must start
with a lowercase letter; type names must start with an uppercase letter.
The case of the remaining letters is unchanged.

In addition, we chose to take advantage of Haskell's module system to
allow us to drop common prefixes (X, XA_, etc.) attached to X11
identifiers.

We named enumeration types so that function types would be easier
to understand. For example, we added Status, WindowClass, etc.
Note that the types are synonyms for Int so no extra typesafety was
obtained.