-- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/
-- | Print currently playing MPD's song metadata and status as JSON
@package mpd-current-json
@version 2.0.0.0
module Paths_mpd_current_json
version :: Version
getBinDir :: IO FilePath
getLibDir :: IO FilePath
getDynLibDir :: IO FilePath
getDataDir :: IO FilePath
getLibexecDir :: IO FilePath
getDataFileName :: FilePath -> IO FilePath
getSysconfDir :: IO FilePath
module Version
versionStr :: [Char]
progName :: [Char]
module Options
data Opts
-- | Custom data record for storing Parser values
Opts :: Integer -> String -> String -> NextSongFlag -> (Type -> Type) -> Opts
-- | MPD port to connect.
[optPort] :: Opts -> Integer
-- | MPD host address to connect.
[optHost] :: Opts -> String
-- | Plain text password to connect to MPD.
[optPass] :: Opts -> String
-- | Either include in the json or print it alone.
[optNext] :: Opts -> NextSongFlag
-- | Print program version.
[optVersion] :: Opts -> Type -> Type
data NextSongFlag
IncludeNextSong :: NextSongFlag
OnlyNextSong :: NextSongFlag
NoNextSong :: NextSongFlag
-- | Run a program description.
--
-- Parse command line arguments. Display help text and exit if any parse
-- error occurs.
execParser :: ParserInfo a -> IO a
-- | Create a ParserPrefs given a modifier
prefs :: PrefsMod -> ParserPrefs
-- | Show the help text if the user enters only the program name or
-- subcommand.
--
-- This will suppress a "Missing:" error and show the full usage instead
-- if a user just types the name of the program.
showHelpOnEmpty :: PrefsMod
optsParser :: Parser Opts
optsParserInfo :: ParserInfo Opts
module Main
-- | Where the program connects to MPD and uses the helper functions to
-- extract values, organize them into a list of key/value pairs, make
-- them a Value using object, then encode it to a
-- conventional JSON ByteString with encodePretty for the
-- pretty-print version.
main :: IO ()