forked from davnils/spoty
-
Notifications
You must be signed in to change notification settings - Fork 0
/
spoty.cabal
57 lines (52 loc) · 2.21 KB
/
spoty.cabal
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: spoty
version: 0.1.0.2
synopsis: Spotify web API wrapper
description:
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.
license: BSD3
license-file: LICENSE
author: David Nilsson
maintainer: nilsson.dd+code@gmail.com
category: Web
build-type: Simple
cabal-version: >=1.10
homepage: https://github.com/davnils/spoty
bug-reports: https://github.com/davnils/spoty/issues
extra-source-files: Examples/Search.hs Examples/Albums.hs CHANGELOG
library
exposed-modules: Utils.Spoty, Utils.Spoty.Types
build-depends:
aeson >= 0.7.0.6 && < 0.8.1,
base >= 4.6 && < 4.8,
bytestring >= 0.10 && < 0.11,
lens >= 4.4 && < 4.5,
lens-aeson >= 1 && < 1.1,
pipes >= 4.1 && < 4.2,
text >= 0.11 && < 1.2,
unordered-containers >= 0.2.3 && < 0.3,
wreq >= 0.2 && < 0.3
hs-source-dirs: src
default-language: Haskell2010
ghc-options: -O2 -Wall
source-repository head
type: git
location: https://github.com/davnils/spoty.git