servant-github-0.1.0.6: Bindings to GitHub API using servant.

Copyright(c) Finlay Thompson 2015
LicenseBSD3
Maintainerfinlay.thompson@gmail.com
Stabilityexperimental
Safe HaskellNone
LanguageHaskell2010

Network.GitHub.Types

Description

Most of the types only parse part of the data availble in the return values from the GitHub API. These will be added to as required.

Synopsis

Documentation

data CountedList name a Source #

List of results including a total count

Constructors

CountedList 

Fields

Instances

type OrgLogin = Text Source #

Primary identifier for an organisation is the login

data Team Source #

Team

Instances

type TeamId = Integer Source #

Identifier for a team id

type MemberId = Integer Source #

members are identified by ids

type Repositories = CountedList "repositories" Repository Source #

Repositories

type RepositoryName = Text Source #

repositories are identified by their name

type RepoName = Text Source #

Commit

type Sha = Text Source #

data Issue Source #

Issue

Instances

Eq Issue Source # 

Methods

(==) :: Issue -> Issue -> Bool #

(/=) :: Issue -> Issue -> Bool #

Show Issue Source # 

Methods

showsPrec :: Int -> Issue -> ShowS #

show :: Issue -> String #

showList :: [Issue] -> ShowS #

Generic Issue Source # 

Associated Types

type Rep Issue :: * -> * #

Methods

from :: Issue -> Rep Issue x #

to :: Rep Issue x -> Issue #

FromJSON Issue Source # 
type Rep Issue Source # 
type Rep Issue = D1 (MetaData "Issue" "Network.GitHub.Types" "servant-github-0.1.0.6-Jg6eNiHJnNk8hKRqM5q4ZV" False) (C1 (MetaCons "Issue" PrefixI True) ((:*:) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "issueNumber") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int)) ((:*:) (S1 (MetaSel (Just Symbol "issueUrl") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)) (S1 (MetaSel (Just Symbol "issueState") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)))) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "issueTitle") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)) (S1 (MetaSel (Just Symbol "issueBody") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text))) ((:*:) (S1 (MetaSel (Just Symbol "issueUser") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 UserLogin)) (S1 (MetaSel (Just Symbol "issueAssignee") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe UserLogin)))))) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "issueMilestone") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Milestone))) ((:*:) (S1 (MetaSel (Just Symbol "issueLabels") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [Label])) (S1 (MetaSel (Just Symbol "issueLocked") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Bool)))) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "issueComments") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int)) (S1 (MetaSel (Just Symbol "issueCreated") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 UTCTime))) ((:*:) (S1 (MetaSel (Just Symbol "issueUpdated") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 UTCTime)) (S1 (MetaSel (Just Symbol "issueClosed") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe UTCTime))))))))

newtype Label Source #

Constructors

Label Text 

type Installations = CountedList "integration_installations" Installation Source #

IntegrationInstallations