servant-github: Bindings to GitHub API using servant.
This package provides a servant-client based client for accessing the 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
Modules
- Network
- Network.GitHub
- Network.GitHub.API
- Network.GitHub.Client
- Network.GitHub.Types
- Network.GitHub
Downloads
- servant-github-0.1.0.3.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
| Versions [RSS] | 0.1.0.0, 0.1.0.1, 0.1.0.2, 0.1.0.3, 0.1.0.4, 0.1.0.6 |
|---|---|
| Dependencies | aeson, base (>=4.7 && <5), either, http-link-header, servant, servant-client, servant-github, text, transformers [details] |
| License | BSD-3-Clause |
| Copyright | 2015 Finlay Thompson |
| Author | Finlay Thompson |
| Maintainer | finlay.thompson@gmail.com |
| Category | Web |
| Home page | http://github.com/finlay/servant-github#readme |
| Source repo | head: git clone https://github.com/finlay/servant-github |
| Uploaded | by finlay at 2016-06-28T22:50:04Z |
| Distributions | |
| Executables | test |
| Downloads | 4021 total (6 in the last 30 days) |
| Rating | 2.0 (votes: 1) [estimated by Bayesian average] |
| Your Rating | |
| Status | Docs not available [build log] All reported builds failed as of 2016-11-23 [all 3 reports] |