servant-github: Bindings to GitHub API using servant.

[ bsd3, library, program, web ] [ Propose Tags ]

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
Versions [faq],,,,,
Dependencies aeson, base (>=4.7 && <5), either, http-link-header, servant, servant-client, text, transformers [details]
License BSD-3-Clause
Copyright 2015 Finlay Thompson
Author Finlay Thompson
Category Web
Home page
Source repo head: git clone
Uploaded by finlay at 2015-12-15T03:28:52Z
Distributions NixOS:
Downloads 3330 total (9 in the last 30 days)
Rating 2.0 (votes: 1) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs available [build log]
Last success reported on 2015-12-15 [all 1 reports]




Maintainer's Corner

For package maintainers and hackage trustees