Haskell binding to the X11 graphics library Hackage Build Status

To build this package using Cabal directly from Git, you must run autoreconf before the usual Cabal build steps (configure/build/install). autoreconf is included in the GNU autoconf tools. There is no need to run the configure script: the cabal configure step will do this for you.

If you are building from a source tarball, you can just use the standard Cabal installation stanza:

cabal configure
cabal build
cabal install

Xinerama support is enabled by default if Xinerama headers are detected. To disable Xinerama support, add the --without-xinerama flag to configure-option:

cabal configure --configure-option="--without-xinerama"

However, if you are building from Git, X11 uses autoconf, so you need to have autoconf installed and run autoconf/autoheader before building:

autoconf
autoheader

or

autoreconf

You will need development versions of at least the X11, xrandr, and XScreenSaver libraries installed for the build to succeed; having the development version of the Xinerama library will enable some optional bindings.

Changes

Change Log / Release Notes

1.10.3 (2022-09-14)

  • Added cWX, cWY, cWWidth, cWHeight constants (AttributeMask) (#82)

  • Added FocusChangeEvent to data Event (#81)

  • Added setWMNormalHints (#83)

1.10.2 (2021-10-24)

  • Restored compatibility with GHC 7.10 (and possibly even older) (#80)

1.10.1 (2021-08-15)

  • Fixed possible high CPU usage of some blocking calls with the threaded RTS (#78)

1.10 (2021-05-31)

  • Added setClientMessageEvent' (#71)

  • Fixed type of xrrUpdateConfiguration (#72)

  • Fixed bottom when deserializing XRRNotifyEvent in getEvent (#72)

  • Added xrrGetMonitors and XRRMonitorInfo (#42)

  • Added setClassHint (#76)

  • Added a few missing event mask fields to WindowAttributes (#77)

1.9.2 (2020-08-25)

  • Make sure that X11 search paths determined by autoconf are actually passed through to Cabal. The fix was contributed by Greg Steuck (#53, #69).

  • Locate the include statement for HsAllKeysyms.h above the relevant ifdefs to avoid issues during cross compilation. The fix was contributed by Vanessa McHale (#65)

1.8 (February 9, 2017)

  • Added deleteProperty

  • Add SelectionClear event to xlib Extra