]ݨ      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~ alpha+Joachim Fasting <joachim.fasting@gmail.com>+Represents various MPD errors (aka. ACKs). An unknown ACK (aka. bug) File already exists (ACK 56)  An operation requiring playback  got interrupted (ACK 55)  Update already running (ACK 54) !Playlist loading failed (ACK 53) A system error (ACK 52) "Playlist at maximum size (ACK 51) $File or directory not found ACK 50) Unknown command (ACK 5)  Authentication required (ACK 4) "Invalid password supplied (ACK 3)  Invalid argument passed (ACK 2) BThe MPDError type is used to signal errors, both from the MPD and  otherwise.  ACK type and a message from the  server Used for misc. errors %MPD returned an unexpected response. + This is a bug, either in the library or  in MPD itself. The connection timed out MPD not responding    alpha+Joachim Fasting <joachim.fasting@gmail.com> BA typeclass to allow for multiple implementations of a connection  to an MPD server. 2Open (or re-open) a connection to the MPD server. Close the connection. Send a string to the server. Get response from the server. EGet underlying Handle (or Nothing, if no connection is estabilished) ;Produce a password to send to the server should it ask for  one. *Alters password to be sent to the server. Get MPD protocol version   alpha+Joachim Fasting <joachim.fasting@gmail.com>  alpha+Joachim Fasting <joachim.fasting@gmail.com>-A uniform interface for argument preparation + The basic idea is that one should be able / to magically prepare an argument for use with , an MPD command, without necessarily knowing/caring , how it needs to be represented internally. BArguments for getResponse are accumulated as strings in values of D this type after being converted from whatever type (an instance of " MPDArg) they were to begin with. *Groups together arguments to getResponse. BConverts a command name and a string of arguments into the string  to hand to getResponse. alpha+Joachim Fasting <joachim.fasting@gmail.com>dContainer for MPD status.  A percentage (0-100) !"#9A value that is incremented by the server every time the  playlist changes. $-The number of items in the current playlist. % Current song's position in the playlist. & Current song's playlist ID. ' Next song's position in the playlist. ( Next song's playlist ID. ) Time elapsed/ total time. *<Bitrate (in kilobytes per second) of playing song (if any). +Crossfade time. ,MixRamp threshold in dB -MixRamp extra delay in seconds . Samplerate/bits/&channels for the chosen output device  (see mpd.conf). /-Job ID of currently running update (if any). 0BIf True, MPD will play only one song and stop after finishing it. 1:If True, a song will be removed after it has been played. 2Last error message (if any). 3#Container for database statistics. 45Number of artists. 6Number of albums. 7Number of songs. 8Daemon uptime in seconds. 9Total playing time. :$Total play time of all the songs in  the database. ;#Last database update in UNIX time. <&Represents a single item in database. =>?@#Represents a single playlist item. ABCDRepresents a single song item. EFGDMap of available tags (multiple occurences of one tag type allowed) HLast modification date ILength of the song in seconds JPosition/ID in playlist KRepresents an output device. LMOutput' s ID number NOutput's name as defined in  the MPD configuration file OP!Represents the result of running count. QR#Number of songs matching the query S"Total play time of matching songs TUPer album mode VPer track mode WDisable replay gain X'Represents the various MPD subsystems. YPlayback options ZAudio outputs [The volume mixer \ The player ]The current playlist ^Stored playlists _Database updates `The song database a*Represents the different playback states. bcdefObject types. ghAvailable metadata types/(scope modifiers, used for searching the 4 database for entries with certain metadata values. ijklmnopqrstuvwxyz{<Used for commands which require a path within the database. " If empty, the root path is used. |1Used for commands which require a playlist name. ) If empty, the current playlist is used. }~Get list of specific tag type d !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~d !"#$%&'()*+,-./012 !"#$%&'()*+,-./0123456789:;456789:;<?>==>?@ABCABCDEFGHIJEFGHIJKLMNOLMNOPQRSQRSTWVUUVWX`_^]\[ZYYZ[\]^_`adcbbcdefgghzyxwvutsrqponmlkjiijklmnopqrstuvwxyz{|}~ alpha+Joachim Fasting <joachim.fasting@gmail.com>'An interface for creating MPD queries. <For example, to match any song where the value of artist is "Foo", we  use:   Artist =? "Foo" HWe can also compose queries, thus narrowing the search. For example, to - match any song where the value of artist is "Foo" and the value of album  is "Bar" , we use: $ Artist =? "Foo" <&> Album =? "Bar" "An empty query. Matches anything. Create a query. Combine queries.  alpha+Joachim Fasting <joachim.fasting@gmail.com>list of (key,value) pairs intermediate object %result object along with information % about amount of lines it consumed Generate Output object. Generate Entry object Generate Song object Parser generator. Parser for songs. Parser for database entries. Parser for outputs.  Builds a QP instance from an assoc. list. Helper function.  Builds a 43 instance from an assoc. list. Helper function.  Builds a  instance from an assoc. list. Helper function.  Builds list of idle subsystems.  >A helper that runs a parser on a string and, depending on the C outcome, either returns the result of some command applied to the < result, or a default value. Used when building structures.  DA helper for running a parser returning Maybe on a pair of strings. L Returns Just if both strings where parsed successfully, Nothing otherwise.      alpha+Joachim Fasting <joachim.fasting@gmail.com>A response is either an   or some result.  Inner state for MPD   @The main implementation of an MPD client. It actually connects & to a server and interacts with it. To use the error throwing/catching capabilities:  5 import Control.Monad.Error (throwError, catchError) (To run IO actions within the MPD monad: % import Control.Monad.Trans (liftIO) 5The most configurable API for running an MPD action. <Kill the server. Obviously, the connection is then invalid. 8Send a command to the MPD server and return the result. $ $   alpha+Joachim Fasting <joachim.fasting@gmail.com>   alpha+Joachim Fasting <joachim.fasting@gmail.com>N+Clear the current error message in status. Get the current song. BMake MPD server notify the client if there is a noteworthy change J in one or more of its subsystems. Note that after running this command K you can either monitor handle for incoming notifications or cancel this  by . Any command other than  sent to MPD server while # idle is active will be ignored. ;Get idle notifications. If there is no notifications ready ? at the moment, this function will block until they show up. Cancel . Get server statistics. Get the server' s status. Set consume mode Set crossfading between songs. Set random playing. Set repeating.  Set the volume (0-100 percent). Set single mode Set the replay gain mode. Get the replay gain options. Play the next song. Pause playing. Begin/continue playing. Play a file with given id. Play the previous song. Seek to some point in a song. *Seek to some point in a song (id version) Stop playing. Like , but returns a playlist id. Optional playlist position Like ( but returns a list of the files added. ;Add a song (or a whole directory) to the current playlist. Clear the current playlist. )Remove a song from the current playlist. )Remove a song from the current playlist. 9Move a song to a given position in the current playlist. HMove a song from (songid) to (playlist index) in the playlist. If to is Q negative, it is relative to the current song in the playlist (if there is one). DRetrieve file paths and positions of songs in the current playlist. B Note that this command is only included for completeness sake; it's < deprecated and likely to disappear at any time, please use   instead. ?Search for songs in the current playlist with strict matching. 5Retrieve metadata for songs in the current playlist. *Displays a list of songs in the playlist. 0 If id is specified, only its info is returned. @Search case-insensitively with partial matches for songs in the  current playlist. ARetrieve a list of changed songs currently in the playlist since  a given playlist version. Like % but only returns positions and ids. Shuffle the playlist. Optional range (start, end) !Swap the positions of two songs. ,Swap the positions of two songs (Id version .Retrieve a list of files in a given playlist. 1Retrieve metadata for files in a given playlist. %Retreive a list of stored playlists. Load an existing playlist. Like ( but returns a list of the files added. 8Add a song (or a whole directory) to a stored playlist. I Will create a new playlist if the one specified does not already exist. GClear a playlist. If the specified playlist does not exist, it will be  created. Remove a song from a playlist. Playlist position ;Move a song to a given position in the playlist specified. Rename an existing playlist. Original playlist New playlist name Delete existing playlist. Save the current playlist. .Count the number of entries matching a query. :Search the database for entries exactly matching a query. 5Adds songs matching a query to the current playlist. %List all metadata of metadata (sic). Metadata to list GList the songs (without metadata) in a database directory recursively.  Recursive . ;Non-recursively list the contents of a database directory. 5Search the database using case insensitive matching. Update the server' s database. 3 If no paths are given, all paths will be scanned. 8 Unreadable or non-existent paths are silently ignored. Like $ but also rescans unmodified files. 0Reads a sticker value for the specified object.  Object URI  Sticker name .Adds a sticker value to the specified object.  Object URI  Sticker name Sticker value 2Delete a sticker value from the specified object.  Object URI  Sticker name -Lists the stickers for the specified object.  Object URI  Sticker name/sticker value JSearches the sticker database for stickers with the specified name, below  the specified path. Path  Sticker name URI/sticker value 1Send password to server to authenticate session. ! Password is sent as plain text. +Check that the server is still responding. Turn off an output device. Turn on an output device. -Retrieve information for all output devices. 'Retrieve a list of available commands. FRetrieve a list of unavailable (due to access restrictions) commands. ,Retrieve a list of available song metadata. *Retrieve a list of supported urlhandlers. JRetreive a list of decoder plugins with associated suffix and mime types.  !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~Nalpha+Joachim Fasting <joachim.fasting@gmail.com>Like !, but returns the update job id.  Toggles play/pause. Plays if stopped. Add a list of songs/folders to a playlist. ' Should be more efficient than running  many times. (Delete a list of songs from a playlist. C If there is a duplicate then no further songs will be deleted, so  take care to avoid them (see prune for this). "List the artists in the database. =List the albums in the database, optionally matching a given  artist. +List the songs in an album of some artist. Retrieve the current playlist.  Equivalent to playlistinfo Nothing. 5Increase or decrease volume by a given percent, e.g.  ' volume 10'/ will increase the volume by 10 percent, while  ' volume (-10)'& will decrease it by the same amount. alpha+Joachim Fasting <joachim.fasting@gmail.com>A wrapper for ) that uses localhost:6600 as the default K host:port, or whatever is found in the environment variables MPD_HOST and & MPD_PORT. If MPD_HOST is of the form "password@host" the password  will be supplied as well.  Examples:  withMPD $ play Nothing 6 withMPD $ add_ "tool" >> play Nothing >> currentSong   !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~  ~}|{hzyxwvutsrqponmlkjifgeadcbX`_^]\[ZYTWVUPQRSKLMNODEFGHIJ@ABC<?>=3456789:; !"#$%&'()*+,-./012!  !"#$%&'()**+,-./0123456789:;<=>??@ABCDEFGHIJKKLMNNOPQRSTTUVWXXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~|                               libmpd-0.5.0Network.MPD.Core Network.MPDNetwork.MPD.Commands.ExtensionsNetwork.MPD.Core.ErrorNetwork.MPD.Core.ClassNetwork.MPD.UtilsNetwork.MPD.Commands.ArgNetwork.MPD.Commands.TypesNetwork.MPD.Commands.QueryNetwork.MPD.Commands.ParseNetwork.MPD.Commands.UtilNetwork.MPD.CommandsACKType UnknownACK FileExists NotPlayingBusy PlaylistLoadSystem PlaylistMax FileNotFoundUnknownCommandAuthInvalidPasswordInvalidArgumentMPDErrorACKCustom UnexpectedTimedOutNoMPDMonadMPDopenclosesendreceive getHandle getPassword setPassword getVersionPasswordStatusstStatestVolumestRepeatstRandom stPlaylistIDstPlaylistLength stSongPosstSongID stNextSongPos stNextSongIDstTime stBitrate stXFadeWidth stMixRampdBstMixRampDelaystAudio stUpdatingDbstSingle stConsumestErrorStats stsArtists stsAlbumsstsSongs stsUptime stsPlaytime stsDbPlaytime stsDbUpdateEntry DirectoryE PlaylistESongEPlaylistplNameplLastModifiedSong sgFilePathsgTagssgLastModifiedsgLengthsgIndexOutputoutIDoutName outEnabledCountcSongs cPlaytimeReplayGainMode AlbumMode TrackModeOff SubsystemOptionsSOutputSMixerSPlayerS PlaylistSStoredPlaylistSUpdateS DatabaseSStatePausedStoppedPlayingSeconds ObjectTypeSongObjMetadataMUSICBRAINZ_TRACKIDMUSICBRAINZ_ALBUMARTISTIDMUSICBRAINZ_ALBUMIDMUSICBRAINZ_ARTISTIDDiscComment PerformerComposerDateGenreNameTrackTitleAlbumArtistSort AlbumArtistAlbum ArtistSortArtistPath PlaylistNamesgGetQueryanything=?<&>ResponseMPDPortHost withMPDExkill getResponse clearError currentSongidlegetIdlenoidlestatsstatusconsume crossfaderandomrepeat setVolumesinglereplayGainModereplayGainStatusnextpauseplayplayIdpreviousseekseekIdstopaddIdaddadd_cleardeletedeleteIdmovemoveIdplaylist playlistFind playlistInfo playlistIdplaylistSearch plChangesplChangesPosIdshuffleswapswapId listPlaylistlistPlaylistInfo listPlaylistsload playlistAdd playlistAdd_ playlistClearplaylistDelete playlistMoverenamermsavecountfindfindAddlistlistAll listAllInfolsInfosearchupdaterescan stickerGet stickerSet stickerDelete stickerList stickerFindpasswordping disableOutput enableOutputoutputscommands notCommandstagTypes urlHandlersdecodersupdateIdtoggleaddMany listArtists listAlbums listAlbum getPlaylistvolumewithMPD breakChar parseDate parseIso8601parseNum parseFracshowBool parseBool parseTripletoAssoc toAssocList splitGroupsMPDArgprepArgs<++><$>MatchItemGen parseOutput parseEntry parseSong genParser parseSongsinitSong parseEntries initPlaylist parseOutputs initOutput parseCount parseCount' parseStats parseStats' parseStatus parseStatus' parseIdleparsepairMPDStatestHandle stPassword stVersionrunMPDmpdOpenmpdClosempdSend mpdReceiveignore parseResponseparseAcksplitAck getResponse_ getResponses failOnEmpty getResponse1 takeValues takeSongs takeEntries