Safe Haskell | None |
---|---|
Language | Haskell2010 |
- module Utils.Spoty.Types
- getAlbum :: SpotID -> IO Album
- getAlbumTracks :: SpotID -> Producer Track IO ()
- getArtist :: SpotID -> IO Artist
- getArtistAlbums :: SpotID -> Producer Album IO ()
- type CountryID = Text
- getArtistTop :: SpotID -> CountryID -> IO [Track]
- getArtistRelated :: SpotID -> IO [Artist]
- data SearchCategory
- search :: [SearchCategory] -> Text -> (Producer Artist IO (), Producer Album IO (), Producer Track IO ())
- searchArtist :: Text -> Producer Artist IO ()
- searchAlbum :: Text -> Producer Album IO ()
- searchTrack :: Text -> Producer Track IO ()
- getTrack :: SpotID -> IO Track
- getUser :: Text -> IO User
- fetchOne :: Monad m => Producer a m () -> m (Maybe a)
- fetchAll :: Monad m => Producer a m () -> m [a]
Documentation
module Utils.Spoty.Types
getArtistTop :: SpotID -> CountryID -> IO [Track] Source
Retrieve the most popular tracks of an artist.
getArtistRelated :: SpotID -> IO [Artist] Source
Retrieve a few related artists.
data SearchCategory Source
Categories being used in a search.
SearchAlbum | Search for albums. |
SearchArtist | Search for artists. |
SearchTrack | Search for tracks. |
search :: [SearchCategory] -> Text -> (Producer Artist IO (), Producer Album IO (), Producer Track IO ()) Source
Search for some string in the given categories.