github-0.7.2: Access to the Github API, v3.

Safe HaskellNone

Github.Data.Definitions

Synopsis

Documentation

data Error Source

Errors have been tagged according to their source, so you can more easily dispatch and handle them.

Constructors

HTTPConnectionError SomeException

A HTTP error occurred. The actual caught error is included.

ParseError String

An error in the parser itself.

JsonError String

The JSON is malformed or unexpected.

UserError String

Incorrect input.

Instances

newtype GithubDate Source

A date in the Github format, which is a special case of ISO-8601.

Constructors

GithubDate 

data EventType Source

Data describing an Event.

Constructors

Mentioned 
Subscribed

The actor subscribed to receive notifications for an issue.

Unsubscribed

The issue was unsubscribed from by the actor.

Referenced

The issue was referenced from a commit message. The commit_id attribute is the commit SHA1 of where that happened.

Merged

The issue was merged by the actor. The commit_id attribute is the SHA1 of the HEAD commit that was merged.

Assigned

The issue was assigned to the actor.

Closed

The issue was closed by the actor. When the commit_id is present, it identifies the commit that closed the issue using “closes / fixes #NN” syntax.

Reopened

The issue was reopened by the actor.

data Contributor Source

Constructors

KnownContributor Int String String String Int String

An existing Github user, with their number of contributions, avatar URL, login, URL, ID, and Gravatar ID.

AnonymousContributor Int String

An unknown Github user with their number of contributions and recorded name.

data Languages Source

This is only used for the FromJSON instance.

Constructors

Languages 

Fields

getLanguages :: [Language]
 

data Language Source

A programming language with the name and number of characters written in it.

Constructors

Language String Int