{-# LANGUAGE DeriveDataTypeable, StandaloneDeriving #-}moduleGithub.Data.DefinitionswhereimportData.TimeimportData.DataimportqualifiedControl.ExceptionasE-- | Errors have been tagged according to their source, so you can more easily-- dispatch and handle them.dataError=HTTPConnectionErrorE.SomeException-- ^ A HTTP error occurred. The actual caught error is included.|ParseErrorString-- ^ An error in the parser itself.|JsonErrorString-- ^ The JSON is malformed or unexpected.|UserErrorString-- ^ Incorrect input.derivingShow-- | A date in the Github format, which is a special case of ISO-8601.newtypeGithubDate=GithubDate{fromGithubDate::UTCTime}deriving(Show,Data,Typeable,Eq,Ord)dataCommit=Commit{commitSha::String,commitParents::[Tree],commitUrl::String,commitGitCommit::GitCommit,commitCommitter::MaybeGithubOwner,commitAuthor::MaybeGithubOwner,commitFiles::[File],commitStats::MaybeStats}deriving(Show,Data,Typeable,Eq,Ord)dataTree=Tree{treeSha::String,treeUrl::String,treeGitTrees::[GitTree]}deriving(Show,Data,Typeable,Eq,Ord)dataGitTree=GitTree{gitTreeType::String,gitTreeSha::String,gitTreeUrl::String,gitTreeSize::MaybeInt,gitTreePath::String,gitTreeMode::String}deriving(Show,Data,Typeable,Eq,Ord)dataGitCommit=GitCommit{gitCommitMessage::String,gitCommitUrl::String,gitCommitCommitter::GitUser,gitCommitAuthor::GitUser,gitCommitTree::Tree,gitCommitSha::MaybeString,gitCommitParents::[Tree]}deriving(Show,Data,Typeable,Eq,Ord)dataGithubOwner=GithubUser{githubOwnerAvatarUrl::String,githubOwnerLogin::String,githubOwnerUrl::String,githubOwnerId::Int,githubOwnerGravatarId::String}|GithubOrganization{githubOwnerAvatarUrl::String,githubOwnerLogin::String,githubOwnerUrl::String,githubOwnerId::Int}deriving(Show,Data,Typeable,Eq,Ord)dataGitUser=GitUser{gitUserName::String,gitUserEmail::String,gitUserDate::GithubDate}deriving(Show,Data,Typeable,Eq,Ord)dataFile=File{fileBlobUrl::String,fileStatus::String,fileRawUrl::String,fileAdditions::Int,fileSha::String,fileChanges::Int,filePatch::String,fileFilename::String,fileDeletions::Int}deriving(Show,Data,Typeable,Eq,Ord)dataStats=Stats{statsAdditions::Int,statsTotal::Int,statsDeletions::Int}deriving(Show,Data,Typeable,Eq,Ord)dataComment=Comment{commentPosition::MaybeInt,commentLine::MaybeInt,commentBody::String,commentCommitId::String,commentUpdatedAt::UTCTime,commentHtmlUrl::MaybeString,commentUrl::String,commentCreatedAt::UTCTime,commentPath::MaybeString,commentUser::GithubOwner,commentId::Int}deriving(Show,Data,Typeable,Eq,Ord)dataDiff=Diff{diffStatus::String,diffBehindBy::Int,diffPatchUrl::String,diffUrl::String,diffBaseCommit::Commit,diffCommits::[Commit],diffTotalCommits::Int,diffHtmlUrl::String,diffFiles::[File],diffAheadBy::Int,diffDiffUrl::String,diffPermalinkUrl::String}deriving(Show,Data,Typeable,Eq,Ord)dataGist=Gist{gistUser::GithubOwner,gistGitPushUrl::String,gistUrl::String,gistDescription::MaybeString,gistCreatedAt::GithubDate,gistPublic::Bool,gistComments::Int,gistUpdatedAt::GithubDate,gistHtmlUrl::String,gistId::String,gistFiles::[GistFile],gistGitPullUrl::String}deriving(Show,Data,Typeable,Eq,Ord)dataGistFile=GistFile{gistFileType::String,gistFileRawUrl::String,gistFileSize::Int,gistFileLanguage::MaybeString,gistFileFilename::String,gistFileContent::MaybeString}deriving(Show,Data,Typeable,Eq,Ord)dataGistComment=GistComment{gistCommentUser::GithubOwner,gistCommentUrl::String,gistCommentCreatedAt::GithubDate,gistCommentBody::String,gistCommentUpdatedAt::GithubDate,gistCommentId::Int}deriving(Show,Data,Typeable,Eq,Ord)dataBlob=Blob{blobUrl::String,blobEncoding::String,blobContent::String,blobSha::String,blobSize::Int}deriving(Show,Data,Typeable,Eq,Ord)dataGitReference=GitReference{gitReferenceObject::GitObject,gitReferenceUrl::String,gitReferenceRef::String}deriving(Show,Data,Typeable,Eq,Ord)dataGitObject=GitObject{gitObjectType::String,gitObjectSha::String,gitObjectUrl::String}deriving(Show,Data,Typeable,Eq,Ord)dataIssue=Issue{issueClosedAt::MaybeGithubDate,issueUpdatedAt::GithubDate,issueHtmlUrl::String,issueClosedBy::MaybeGithubOwner,issueLabels::[IssueLabel],issueNumber::Int,issueAssignee::MaybeGithubOwner,issueUser::GithubOwner,issueTitle::String,issuePullRequest::PullRequestReference,issueUrl::String,issueCreatedAt::GithubDate,issueBody::String,issueState::String,issueId::Int,issueComments::Int,issueMilestone::MaybeMilestone}deriving(Show,Data,Typeable,Eq,Ord)dataMilestone=Milestone{milestoneCreator::GithubOwner,milestoneDueOn::MaybeGithubDate,milestoneOpenIssues::Int,milestoneNumber::Int,milestoneClosedIssues::Int,milestoneDescription::String,milestoneTitle::String,milestoneUrl::String,milestoneCreatedAt::GithubDate,milestoneState::String}deriving(Show,Data,Typeable,Eq,Ord)dataIssueLabel=IssueLabel{labelColor::String,labelUrl::String,labelName::String}deriving(Show,Data,Typeable,Eq,Ord)dataPullRequestReference=PullRequestReference{pullRequestReferenceHtmlUrl::MaybeString,pullRequestReferencePatchUrl::MaybeString,pullRequestReferenceDiffUrl::MaybeString}deriving(Show,Data,Typeable,Eq,Ord)dataIssueComment=IssueComment{issueCommentUpdatedAt::GithubDate,issueCommentUser::GithubOwner,issueCommentUrl::String,issueCommentCreatedAt::GithubDate,issueCommentBody::String,issueCommentId::Int}deriving(Show,Data,Typeable,Eq,Ord)-- | Data describing an @Event@.dataEventType=Mentioned-- ^ The actor was @mentioned in an issue body.|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.deriving(Show,Data,Typeable,Eq,Ord)dataEvent=Event{eventActor::GithubOwner,eventType::EventType,eventCommitId::MaybeString,eventUrl::String,eventCreatedAt::GithubDate,eventId::Int,eventIssue::MaybeIssue}deriving(Show,Data,Typeable,Eq,Ord)dataSimpleOrganization=SimpleOrganization{simpleOrganizationUrl::String,simpleOrganizationAvatarUrl::String,simpleOrganizationId::Int,simpleOrganizationLogin::String}deriving(Show,Data,Typeable,Eq,Ord)dataOrganization=Organization{organizationType::String,organizationBlog::MaybeString,organizationLocation::MaybeString,organizationLogin::String,organizationFollowers::Int,organizationCompany::MaybeString,organizationAvatarUrl::String,organizationPublicGists::Int,organizationHtmlUrl::String,organizationEmail::MaybeString,organizationFollowing::Int,organizationPublicRepos::Int,organizationUrl::String,organizationCreatedAt::GithubDate,organizationName::MaybeString,organizationId::Int}deriving(Show,Data,Typeable,Eq,Ord)dataPullRequest=PullRequest{pullRequestClosedAt::MaybeGithubDate,pullRequestCreatedAt::GithubDate,pullRequestUser::GithubOwner,pullRequestPatchUrl::String,pullRequestState::String,pullRequestNumber::Int,pullRequestHtmlUrl::String,pullRequestUpdatedAt::GithubDate,pullRequestBody::String,pullRequestIssueUrl::String,pullRequestDiffUrl::String,pullRequestUrl::String,pullRequestLinks::PullRequestLinks,pullRequestMergedAt::MaybeGithubDate,pullRequestTitle::String,pullRequestId::Int}deriving(Show,Data,Typeable,Eq,Ord)dataDetailedPullRequest=DetailedPullRequest{-- this is a duplication of a PullRequestdetailedPullRequestClosedAt::MaybeGithubDate,detailedPullRequestCreatedAt::GithubDate,detailedPullRequestUser::GithubOwner,detailedPullRequestPatchUrl::String,detailedPullRequestState::String,detailedPullRequestNumber::Int,detailedPullRequestHtmlUrl::String,detailedPullRequestUpdatedAt::GithubDate,detailedPullRequestBody::String,detailedPullRequestIssueUrl::String,detailedPullRequestDiffUrl::String,detailedPullRequestUrl::String,detailedPullRequestLinks::PullRequestLinks,detailedPullRequestMergedAt::MaybeGithubDate,detailedPullRequestTitle::String,detailedPullRequestId::Int,detailedPullRequestMergedBy::MaybeGithubOwner,detailedPullRequestChangedFiles::Int,detailedPullRequestHead::PullRequestCommit,detailedPullRequestComments::Int,detailedPullRequestDeletions::Int,detailedPullRequestAdditions::Int,detailedPullRequestReviewComments::Int,detailedPullRequestBase::PullRequestCommit,detailedPullRequestCommits::Int,detailedPullRequestMerged::Bool,detailedPullRequestMergeable::Bool}deriving(Show,Data,Typeable,Eq,Ord)dataPullRequestLinks=PullRequestLinks{pullRequestLinksReviewComments::String,pullRequestLinksComments::String,pullRequestLinksHtml::String,pullRequestLinksSelf::String}deriving(Show,Data,Typeable,Eq,Ord)dataPullRequestCommit=PullRequestCommit{}deriving(Show,Data,Typeable,Eq,Ord)dataRepo=Repo{repoSshUrl::String,repoDescription::MaybeString,repoCreatedAt::GithubDate,repoHtmlUrl::String,repoSvnUrl::String,repoForks::Int,repoHomepage::MaybeString,repoFork::Bool,repoGitUrl::String,repoPrivate::Bool,repoCloneUrl::String,repoSize::Int,repoUpdatedAt::GithubDate,repoWatchers::Int,repoOwner::GithubOwner,repoName::String,repoLanguage::MaybeString,repoMasterBranch::MaybeString,repoPushedAt::MaybeGithubDate-- ^ this is Nothing for new repositories,repoId::Int,repoUrl::String,repoOpenIssues::Int,repoHasWiki::MaybeBool,repoHasIssues::MaybeBool,repoHasDownloads::MaybeBool}deriving(Show,Data,Typeable,Eq,Ord)dataContributor-- | An existing Github user, with their number of contributions, avatar-- URL, login, URL, ID, and Gravatar ID.=KnownContributorIntStringStringStringIntString-- | An unknown Github user with their number of contributions and recorded name.|AnonymousContributorIntStringderiving(Show,Data,Typeable,Eq,Ord)-- | This is only used for the FromJSON instance.dataLanguages=Languages{getLanguages::[Language]}deriving(Show,Data,Typeable,Eq,Ord)-- | A programming language with the name and number of characters written in-- it.dataLanguage=LanguageStringIntderiving(Show,Data,Typeable,Eq,Ord)dataTag=Tag{tagName::String,tagZipballUrl::String,tagTarballUrl::String,tagCommit::BranchCommit}deriving(Show,Data,Typeable,Eq,Ord)dataBranch=Branch{branchName::String,branchCommit::BranchCommit}deriving(Show,Data,Typeable,Eq,Ord)dataBranchCommit=BranchCommit{branchCommitSha::String,branchCommitUrl::String}deriving(Show,Data,Typeable,Eq,Ord)dataDetailedOwner=DetailedUser{detailedOwnerCreatedAt::GithubDate,detailedOwnerType::String,detailedOwnerPublicGists::Int,detailedOwnerAvatarUrl::String,detailedOwnerFollowers::Int,detailedOwnerFollowing::Int,detailedOwnerHireable::Bool,detailedOwnerGravatarId::String,detailedOwnerBlog::MaybeString,detailedOwnerBio::MaybeString,detailedOwnerPublicRepos::Int,detailedOwnerName::MaybeString,detailedOwnerLocation::MaybeString,detailedOwnerCompany::MaybeString,detailedOwnerEmail::String,detailedOwnerUrl::String,detailedOwnerId::Int,detailedOwnerHtmlUrl::String,detailedOwnerLogin::String}|DetailedOrganization{detailedOwnerCreatedAt::GithubDate,detailedOwnerType::String,detailedOwnerPublicGists::Int,detailedOwnerAvatarUrl::String,detailedOwnerFollowers::Int,detailedOwnerFollowing::Int,detailedOwnerBlog::MaybeString,detailedOwnerBio::MaybeString,detailedOwnerPublicRepos::Int,detailedOwnerName::MaybeString,detailedOwnerLocation::MaybeString,detailedOwnerCompany::MaybeString,detailedOwnerUrl::String,detailedOwnerId::Int,detailedOwnerHtmlUrl::String,detailedOwnerLogin::String}deriving(Show,Data,Typeable,Eq,Ord)