{-# LANGUAGE OverloadedStrings #-}
module Network.MPD.Commands.StoredPlaylists
( listPlaylist
, listPlaylistInfo
, listPlaylists
, load
, playlistAdd
, playlistClear
, playlistDelete
, playlistMove
, rename
, rm
, save
) where
import qualified Network.MPD.Applicative.Internal as A
import qualified Network.MPD.Applicative.StoredPlaylists as A
import Network.MPD.Commands.Types
import Network.MPD.Core
listPlaylist :: MonadMPD m => PlaylistName -> m [Path]
listPlaylist = A.runCommand . A.listPlaylist
listPlaylistInfo :: MonadMPD m => PlaylistName -> m [Song]
listPlaylistInfo = A.runCommand . A.listPlaylistInfo
listPlaylists :: MonadMPD m => m [PlaylistName]
listPlaylists = A.runCommand A.listPlaylists
load :: MonadMPD m => PlaylistName -> m ()
load = A.runCommand . A.load
playlistAdd :: MonadMPD m => PlaylistName -> Path -> m ()
playlistAdd plname = A.runCommand . A.playlistAdd plname
playlistClear :: MonadMPD m => PlaylistName -> m ()
playlistClear = A.runCommand . A.playlistClear
playlistDelete :: MonadMPD m => PlaylistName -> Position -> m ()
playlistDelete name = A.runCommand . A.playlistDelete name
playlistMove :: MonadMPD m => PlaylistName -> Id -> Position -> m ()
playlistMove name from = A.runCommand . A.playlistMove name from
rename :: MonadMPD m
=> PlaylistName
-> PlaylistName
-> m ()
rename plname = A.runCommand . A.rename plname
rm :: MonadMPD m => PlaylistName -> m ()
rm = A.runCommand . A.rm
save :: MonadMPD m => PlaylistName -> m ()
save = A.runCommand . A.save