-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathservant-github.cabal
More file actions
91 lines (86 loc) · 3.4 KB
/
servant-github.cabal
File metadata and controls
91 lines (86 loc) · 3.4 KB
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
name: servant-github
version: 0.1.0.6
synopsis: Bindings to GitHub API using servant.
description: This package provides a servant-client based client
for accessing the <https://developer.github.com/v3/ GitHub API v3>.
.
The github client is provided through the 'Network.GitHub.GitHub' monad,
which provides support for managing the user-agent (a requirement
for github), an authentication token, and, pagination
support when the resulting value is a list.
.
>
> import System.Environment
> import Data.String
> import Network.GitHub
>
> main = do
> token <- fmap fromString <$> lookupEnv "GITHUB_TOKEN"
> result <- runGitHub userOrganisations token
> case result of
> Left e -> print e
> Right orgs -> mapM_ print orgs
homepage: http://github.com/finlay/servant-github#readme
license: BSD3
license-file: LICENSE
author: Finlay Thompson
maintainer: finlay.thompson@gmail.com
copyright: 2015 Finlay Thompson
category: Web
build-type: Simple
cabal-version: >=1.10
library
hs-source-dirs: src
exposed-modules: Network.GitHub
, Network.GitHub.API
, Network.GitHub.Client
, Network.GitHub.Types
, Network.GitHub.Types.Core
, Network.GitHub.Types.Gist
, Network.GitHub.Types.Gist.Core
, Network.GitHub.Types.Gist.Edit
, Network.GitHub.Types.Gist.Create
build-depends: base >= 4.7 && < 5
, aeson
, bytestring
, cryptonite
, http-api-data
, http-client
, http-client-tls
, http-link-header
, http-media
, http-types
, jose
, servant
, servant-client >= 0.9 && < 0.15
, swagger2
, text
, time
, transformers
, lens
, mtl
, unordered-containers
, semigroups
default-language: Haskell2010
executable test
main-is: Main.hs
build-depends: base
, servant-github
, text
, transformers
hs-source-dirs: app
ghc-options: -Wall -fno-warn-name-shadowing -O3 -threaded
default-language: Haskell2010
test-suite servant-github-test
type: exitcode-stdio-1.0
hs-source-dirs: test
main-is: Spec.hs
build-depends: base
, hspec
, QuickCheck
, servant-github
ghc-options: -threaded -rtsopts -with-rtsopts=-N
default-language: Haskell2010
source-repository head
type: git
location: https://github.com/finlay/servant-github