The spoty package
This is a package candidate release! Here you can preview how this package release will appear once published to the main package index (which can be accomplished via the 'maintain' link below). Please note that once a package has been published to the main package index it cannot be undone! Please consult the package uploading documentation for more information.
- 'ghc-options: -O2' is rarely needed. Check that it is giving a real benefit and not just imposing longer compile times on your users.
- Exposed modules use unallocated top-level names: Utils
Web API https://developer.spotify.com/web-api/ wrapper powered by lens and pipes, allowing easy access to public endpoints. Does not have any external dependencies nor requirements regarding app registration.
Paging is handled transparently using pipes
All data types are navigated using lenses
All public endpoints, with multi-get versions excluded, are implemented.
> :set -XOverloadedStrings > :m +Control.Lens Utils.Spoty > Just artist <- fetchOne (searchArtist "avicii") -- assume at least one match > popular <- getArtistTop (view spotifyID artist) "SE" -- retrieve the most popular tracks in Sweden > mapM_ (print . view name) popular -- print the corresponding names "Hey Brother" "Addicted To You" "Wake Me Up" ...
Please read the README for details.
|Versions||0.1.0.0, 0.1.0.1, 0.1.0.1, 0.1.0.2|
|Dependencies||aeson (>=0.7.0.6 && <0.8.1), base (>=4.6 && <4.8), bytestring (==0.10.*), lens (>=4 && <4.4), pipes (==4.1.*), text (>=0.11 && <1.2), unordered-containers (>=0.2.3 && <0.3), wreq (==0.1.*) [details]|
|Source repository||head: git clone https://github.com/davnils/spoty.git|
|Uploaded||Mon Aug 11 09:08:20 UTC 2014 by DavidNilsson|
For package maintainers and hackage trustees