libmpd: An MPD client library.

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

A client library for MPD, the Music Player Daemon (http://www.musicpd.org/).


[Skip to Readme]

Flags

Automatic Flags
NameDescriptionDefault
test

Build test driver

Disabled
coverage

Build driver with hpc instrumentation

Disabled
old_base

Use base version 3

Disabled

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

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

Versions [RSS] 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.8.0.1, 0.8.0.2, 0.8.0.3, 0.8.0.4, 0.8.0.5, 0.9.0, 0.9.0.1, 0.9.0.2, 0.9.0.3, 0.9.0.4, 0.9.0.5, 0.9.0.6, 0.9.0.7, 0.9.0.8, 0.9.0.9, 0.9.0.10, 0.9.1.0, 0.9.2.0, 0.9.3.0, 0.10.0.0
Change log ChangeLog
Dependencies base (>=4 && <5), containers (>=0.3 && <0.4), filepath (>=1.0 && <1.2), mtl (>=1.1 && <1.2), network (>=2.1 && <2.3), old-locale (>=1.0 && <1.1), QuickCheck (>=2.1 && <2.2), time (>=1.1 && <1.2), utf8-string (>=0.3.1 && <0.4) [details]
License LicenseRef-LGPL
Copyright Ben Sinclair 2005-2009, Joachim Fasting 2010
Author Ben Sinclair
Maintainer Joachim Fasting <joachim.fasting@gmail.com>
Category Network, Sound
Home page http://github.com/joachifm/libmpd-haskell
Bug tracker http://trac.haskell.org/libmpd/newticket
Source repo head: git clone git://github.com/joachifm/libmpd-haskell.git
Uploaded by JoachimFasting at 2010-09-08T13:47:41Z
Distributions Arch:0.10.0.0, Debian:0.9.1.0, Fedora:0.10.0.0, FreeBSD:0.9.0.2, NixOS:0.10.0.0, openSUSE:0.10.0.0
Reverse Dependencies 7 direct, 1 indirect [details]
Executables test
Downloads 41335 total (171 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]

Readme for libmpd-0.5.0

[back to package description]

libmpd-haskell: a client library for MPD

About

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.

Getting

  • Latest release
  • git clone git://github.com/joachifm/libmpd-haskell.git

Building

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

To use the deprecated base 3, run:

cabal install -f old_base

Running tests

To run the libmpd testsuite, do:

./tests/run-tests.lhs

Compiler support

We try to support the two last major versions of GHC, but only the latest version 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.

Usage

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-Ough-Six.mp3",...]

Development

To start developing libmpd-haskell you'll first need a clone of the source code repository:

git clone git://github.com/joachifm/libmpd-haskell.git

To pull in new changes from upstream, use:

git pull origin master

When writing or modifying code, please try to conform to the surrounding style. If you introduce new functionality, please include a test case or at least document the expected behavior.

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 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.

Submitting bug reports

See our bug tracker.

Resources

License

LGPL version 2.1 (see LICENSE)

Authors

Ben Sinclair <ben.d.sinclair@gmail.com>

Joachim Fasting <joachim.fasting@gmail.com>

Daniel Schoepe <daniel.schoepe@googlemail.com>

Andrzej Rybczak <electricityispower@gmail.com>