;c      !"#$%&'()*+,-./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. 5Send a string to the server and return its response. ;Produce a password to send to the server should it ask for  one. 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. ( Samplerate/bits/&channels for the chosen output device  (see mpd.conf). )-Job ID of currently running update (if any). *BIf True, MPD will play only one song and stop after finishing it. +:If True, a song will be removed after it has been played. ,Last error message (if any). -Represents a single song item. .Auxiliary song fields /01234567Length in seconds 8Year 9 Track number/ total tracks :Position in set/ total in set ;<=#Container for database statistics. >?Number of artists. @Number of albums. ANumber of songs. BDaemon uptime in seconds. CTotal playing time. D$Total play time of all the songs in  the database. E#Last database update in UNIX time. FRepresents an output device. GHOutput' s ID number IOutput's name as defined in the MPD  configuration file JK!Represents the result of running count. LM#Number of songs matching the query N"Total play time of matching songs OPPer album mode QPer track mode RDisable replay gain S'Represents the various MPD subsystems. TPlayback options UAudio outputs VThe volume mixer W The player XThe current playlist YStored playlists ZDatabase updates [The song database \*Represents the different playback states. ]^_`Represents a song's playlist index. a(A playlist ID number that more robustly  identifies a song. b,A playlist position index (starting from 0) cdObject types. efAvailable metadata types/(scope modifiers, used for searching the 4 database for entries with certain metadata values. ghijklmnopqrs<Used for commands which require a path within the database. " If empty, the root path is used. t1Used for commands which require a playlist name. ) If empty, the current playlist is used. uvwxyz{|d !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|d !"#$%&'()*+, !"#$%&'()*+,-./0123456789:;<./0123456789:;<=>?@ABCDE>?@ABCDEFGHIJGHIJKLMNLMNORQPPQRS[ZYXWVUTTUVWXYZ[\_^]]^_`baabcdeef rqponmlkjihgghijklmnopqrstuvwxyz{|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>A response is either an   or some result. @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> Builds a LK instance from an assoc. list. Builds a list of GF instances from an assoc. list  Builds a >= instance from an assoc. list.  Builds a .- instance from an assoc. list.  Builds a  instance from an assoc. list. *Run a parser and lift the result into the MPD monad >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>d+Clear the current error message in status.  Get the currently playing song. =Wait until there is a noteworthy change in one or more of MPD's D susbystems. Note that running this command will block until either   returns or is cancelled by . 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 the previous song. Seek to some point in a song. 0 Seeks in current song if no position is given. 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. 9Move a song to a given position in the current playlist. 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. @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. ? Note that the positions must be of the same type, i.e. mixing b and a  will result in a no-op. .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. 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  for this). ?Returns all songs and directories that match the given partial  path name. Crop playlist.  The bounds are inclusive.  If 7 is passed the cropping will leave your playlist alone  on that side.  Using a@ will automatically find the absolute playlist position and use  that as the cropping boundary. #Remove duplicate playlist entries. "List directories non-recursively. List files non-recursively. List all playlists. "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.       !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~Valpha+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{|}~  wvutsfrqponmlkjihgdec`ba\_^]S[ZYXWVUTORQPKLMNxFGHIJy=>?@ABCDEz-./0123456789:;<{ !"#$%&'()*+,|}~    !"#$$%&'()*+,-./01234567789:;<=>?@ABCDEFFGHIJKLMNNOPQRRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyzvwx{|}~                libmpd-0.4.2Network.MPD.Core Network.MPDNetwork.MPD.Core.ErrorNetwork.MPD.Core.ClassNetwork.MPD.UtilsNetwork.MPD.Commands.ArgNetwork.MPD.Commands.TypesNetwork.MPD.Commands.QueryNetwork.MPD.Commands.ParseNetwork.MPD.CommandsACKType UnknownACK FileExists NotPlayingBusy PlaylistLoadSystem PlaylistMax FileNotFoundUnknownCommandAuthInvalidPasswordInvalidArgumentMPDErrorACKCustom UnexpectedTimedOutNoMPDMonadMPDopenclosesend getPasswordPasswordStatusstStatestVolumestRepeatstRandomstPlaylistVersionstPlaylistLength stSongPosstSongID stNextSongPos stNextSongIDstTime stBitrate stXFadeWidthstAudio stUpdatingDbstSingle stConsumestErrorSongsgArtistsgAlbumsgTitle sgFilePathsgGenresgName sgComposer sgPerformersgLengthsgDatesgTracksgDiscsgIndexsgAuxStats stsArtists stsAlbumsstsSongs stsUptime stsPlaytime stsDbPlaytime stsDbUpdateDevice dOutputID dOutputNamedOutputEnabledCountcSongs cPlaytimeReplayGainMode AlbumMode TrackModeOff SubsystemOptionsOutputMixerPlayerPlaylistStoredPlaylistUpdateDatabaseStatePausedStoppedPlayingPLIndexIDPosSeconds ObjectTypeSongObjMetaFilenameAnyDisc PerformerComposerDateGenreNameTrackTitleAlbumArtistPath PlaylistName defaultCount defaultDevice defaultStats defaultSong defaultStatusQueryanything=?<&>ResponseMPDPortHost withMPDExkill getResponse clearError currentSongidlenoidlestatsstatusconsume crossfaderandomrepeat setVolumesinglereplayGainModereplayGainStatusnextpauseplaypreviousseekstopaddIdaddadd_cleardeletemoveplaylist playlistFind playlistInfoplaylistSearch plChangesplChangesPosIdshuffleswap listPlaylistlistPlaylistInfo listPlaylistsload playlistAdd playlistAdd_ playlistClearplaylistDelete playlistMoverenamermsavecountfindfindAddlistlistAll listAllInfolsInfosearchupdaterescan stickerGet stickerSet stickerDelete stickerList stickerFindpasswordping disableOutput enableOutputoutputscommands notCommandstagTypes urlHandlersdecodersupdateIdtoggleaddMany deleteManycompletecropprunelsDirslsFiles lsPlaylists listArtists listAlbums listAlbum getPlaylistvolumewithMPD breakChar parseDateparseNumshowBool parseBooltoAssoc toAssocList splitGroupsMPDArgprepArgs<++><$>MatchrunMPDmpdOpenmpdClosempdSendignore parseResponseparseAcksplitAck parseCount parseOutputs parseStats parseSong parseStatus runParserparsepair EntryTypeDirEntryPLEntry SongEntrylsInfo'base Data.MaybeNothingfindDuplicates getResponse_ getResponses failOnEmpty getResponse1 takeValues takeEntriesextractEntries takeSongs