The servant-github package

This is a package candidate release! Here you can preview how this package release will appear once published to the main package index (which can be accomplished via the 'maintain' link below). Please note that once a package has been published to the main package index it cannot be undone! Please consult the package uploading documentation for more information.

[maintain]

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

Versions0.1.0.0, 0.1.0.0, 0.1.0.1, 0.1.0.2, 0.1.0.3, 0.1.0.4, 0.1.0.6
Change logNone available
Dependenciesaeson, base (>=4.7 && <5), either, http-link-header, servant, servant-client, servant-github, text, transformers [details]
LicenseBSD3
Copyright2015 Finlay Thompson
AuthorFinlay Thompson
Maintainerfinlay.thompson@gmail.com
CategoryWeb
Home pagehttp://github.com/finlay/servant-github#readme
Source repositoryhead: git clone https://github.com/finlay/servant-github
Executablesservant-github-example
UploadedTue Dec 15 02:52:53 UTC 2015 by finlay

Modules

[Index]

Downloads

Maintainers' corner

For package maintainers and hackage trustees