The servant-github package

[Tags:bsd3, library, program, test]

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


Dependencies aeson, base (>=4.7 && <5), http-api-data, http-client, http-link-header, servant, servant-client (>=0.7 && <1), servant-github, text, transformers [details]
License BSD3
Copyright 2015 Finlay Thompson
Author Finlay Thompson
Category Web
Home page
Source repository head: git clone
Uploaded Tue Jun 28 23:48:20 UTC 2016 by finlay
Distributions NixOS:
Downloads 264 total (19 in the last 30 days)
1 []
Status Docs not available [build log]
All reported builds failed as of 2016-11-23 [all 3 reports]
Hackage Matrix CI


  • Network
    • Network.GitHub
      • Network.GitHub.API
      • Network.GitHub.Client
      • Network.GitHub.Types


Maintainer's Corner

For package maintainers and hackage trustees