Copyright | (c) Itai Y. Efrat 2020-2021 |
---|---|
License | GPLv2-or-later (see LICENSE) |
Maintainer | Itai Y. Efrat <itai3397@gmail.com> |
Safe Haskell | None |
Language | Haskell2010 |
Functions that rebuild the state after changes that require it, Or that have to be here to avoid dependency loops.
Synopsis
- songsOfArtist :: Value -> IO (Vector Song)
- songsOfAlbum :: Value -> IO (Vector Song)
- albumsOfArtist :: Value -> IO (Vector Value)
- yalbumsOfArtist :: Bool -> Value -> IO (Vector (Value, Value))
- yearOfAlbum :: Value -> IO Value
- rebuildLib :: MonadIO m => HumState -> m HumState
- rebuildLibArtists :: MonadIO m => HumState -> m HumState
- reloadLibArtists :: MonadIO m => HumState -> m HumState
- rebuildLibAlbums :: MonadIO m => HumState -> m HumState
- reloadLibAlbums :: MonadIO m => HumState -> m HumState
- rebuildPl :: MonadIO m => HumState -> m HumState
- rebuildPlList :: MonadIO m => HumState -> m HumState
- reloadPlList :: MonadIO m => HumState -> m HumState
- rebuildQueue :: MonadIO m => HumState -> m HumState
- rebuildStatus :: MonadIO m => HumState -> m HumState
Documentation
yalbumsOfArtist :: Bool -> Value -> IO (Vector (Value, Value)) Source #
All year-album pairs of a given artist
rebuildLib :: MonadIO m => HumState -> m HumState Source #
Rebuild entire library state, keeping the index of the left column if possible.
rebuildLibArtists :: MonadIO m => HumState -> m HumState Source #
Rebuild library state from selected artist.
reloadLibArtists :: MonadIO m => HumState -> m HumState Source #
Rebuild library state from selected artist.
rebuildLibAlbums :: MonadIO m => HumState -> m HumState Source #
Rebuild library state from selected album.
reloadLibAlbums :: MonadIO m => HumState -> m HumState Source #
Rebuild library state from selected album, keeping the selected song index if possible.
rebuildPl :: MonadIO m => HumState -> m HumState Source #
Rebuild entire stored playlists state, keeping the index of the left column if possible.
rebuildPlList :: MonadIO m => HumState -> m HumState Source #
Rebuild stored playlists state from selected playlist.
reloadPlList :: MonadIO m => HumState -> m HumState Source #
Rebuild stored playlists state from selected playlist, keeping the selected song index if possible.