libmpd: An MPD client library.

[ library, mit, network, sound ] [ Propose Tags ]

A client library for MPD, the Music Player Daemon (

[Skip to Readme]
Versions [faq] 0.1.2, 0.1.3, 0.2.0, 0.2.1, 0.3.0, 0.3.1, 0.4.0, 0.4.1, 0.4.2, 0.5.0, 0.6.0, 0.7.0, 0.7.1, 0.7.2, 0.8.0,,,,,, 0.9.0,,,,,,,,,
Change log NEWS
Dependencies base (==4.*), containers (>=0.3 && <0.5), filepath (>=1.0 && <1.4), mtl (==2.0.*), network (>=2.1 && <2.4), old-locale (>=1.0 && <2.0), QuickCheck (>=2.1), time (>=1.1 && <2.0), utf8-string (>=0.3.1 && <0.4) [details]
License LicenseRef-LGPL
Copyright Ben Sinclair 2005-2009, Joachim Fasting 2012
Author Ben Sinclair
Maintainer Joachim Fasting <>
Category Network, Sound
Home page
Bug tracker
Source repo head: git clone git://
Uploaded by JoachimFasting at Tue Feb 7 16:29:28 UTC 2012
Distributions Arch:, Debian:, Fedora:, FreeBSD:, LTSHaskell:, NixOS:, Stackage:
Executables test
Downloads 19731 total (576 in the last 30 days)
Rating (no votes yet) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs uploaded by user
Build status unknown [no reports yet]





Build test driver


Build driver with hpc instrumentation


Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info


Maintainer's Corner

For package maintainers and hackage trustees

Readme for libmpd-0.7.1

[back to package description]

libmpd-haskell: a client library for MPD


libmpd-haskell is a client library for MPD written in Haskell that aims to provide a safe and flexible yet consistent and intuitive interface to MPD's external API.


  • Latest release
  • git clone git://


The preferred method of building libmpd-haskell is using cabal-install, which takes care of dependency resolution and other minutiae.

To install libmpd-haskell, simply run:

cd libmpd-haskell && cabal install

Running tests

To run the libmpd testsuite, do:


Compiler support

We try to support the two last major versions of GHC, but only the latest version (provided by the haskell-platform) is actually tested for.

MPD API compliance

We try to comply with the latest version of the MPD protocol specification; any deviation from this is a bug.


With GHCi:

> import Network.MPD
> withMPD $ lsInfo ""
Right [Left "Tool", Left "Tom Waits",...]
> withMPD $ add "Tom Waits/Big Time"
Right ["Tom Waits/Big Time/01 - 16 Shells from a Thirty-Ought-Six.mp3",...]


Getting started

Create the clone thus:

git clone git:// master

To pull in new changes from upstream, use:

git pull origin master

To set up GIT hooks, see hooks/README in the source distribution.

Submitting patches

To submit a patch, use git format-patch and email the resulting file(s) to one of the developers or upload it to the bug tracker.

Alternatively you can create your own fork of the repository and send a pull request.

Well-formatted patches are appreciated. New features should have a test case.

Submitting bug reports

See our bug tracker. Test cases are highly appreciated.



LGPL version 2.1 (see LICENSE)

Contributors (in order of appearance)

Ben Sinclair <>

Joachim Fasting <>

gwern0 <>

Daniel Schoepe <>

Andrzej Rybczak <>

Simon Hengel <>

Daniel Wagner <>