The servant-github package

[ Tags: 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

Properties

Versions 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), bytestring, cryptonite, http-api-data, http-client, http-client-tls, http-link-header, http-media, jose, lens, mtl, servant, servant-client (>=0.9 && <0.12), servant-github, text, time, transformers [details]
License BSD3
Copyright 2015 Finlay Thompson
Author Finlay Thompson
Maintainer finlay.thompson@gmail.com
Category Web
Home page http://github.com/finlay/servant-github#readme
Source repository head: git clone https://github.com/finlay/servant-github
Uploaded Mon Nov 13 01:48:35 UTC 2017 by finlay
Distributions NixOS:0.1.0.6
Executables test
Downloads 339 total (54 in the last 30 days)
Rating 2.0 (votes: 1) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2017-11-13 [all 1 reports]
Hackage Matrix CI

Modules

[Index]

Downloads

Maintainer's Corner

For package maintainers and hackage trustees