Haskell Binding


http://hackage.haskell.org/package/zeromq-haskell (ØMQ/2.1.x)
http://hackage.haskell.org/package/zeromq3-haskell (ØMQ/3.1.x)

Source Code



Note: This package depends on GHC-7.0 or higher and ØMQ (2.1.x or 3.1.x depending on the package used).

Automatic download

$ cabal update
$ cabal install zeromq-haskell  # (ØMQ/2.1.x)
$ cabal install zeromq3-haskell # (ØMQ/3.1.x)

You might want to use --enable-documentation for cabal install to have the API-Documentation generated.

Manual download

Download the package and unpack it into a temporary directory. Change into it and perform the following steps:

$ cabal install

Note: If you have installed ØMQ into a non-standard location you may see an error message in the configure step, like:

Setup.hs: Missing dependency on a foreign library:
* Missing header file: zmq.h
* Missing C library: zmq
This problem can usually be solved by installing the system package that
provides this library (you may need the "-dev" version). If the library is
already installed but in a non-standard location then you can use the flags
--extra-include-dirs= and --extra-lib-dirs= to specify where it is.

Just follow the instructions and the installation should finish without errors.


Documentation is available online at:

http://hackage.haskell.org/packages/archive/zeromq-haskell/latest/doc/html/System-ZMQ.html (ØMQ/2.1.x)
http://twittner.github.com/zeromq-haskell/ (ØMQ/3.1.x)

Additionally, if you did use --enable-documentation with cabal install you find the API documentation on your local system as well.

Bug Reporting

If you encounter problems please fill a bug report at:


or write an e-mail to:


Mailing List

Discussions about this language binding take place on the general zeromq-dev list.