github-0.16.0: Access to the GitHub API, v3.

LicenseBSD-3-Clause
MaintainerOleg Grenrus <oleg.grenrus@iki.fi>
Safe HaskellNone
LanguageHaskell2010

GitHub.Data.Options

Contents

Description

Module with modifiers for pull requests' and issues' listings.

Synopsis

Common modifiers

stateOpen :: HasState mod => mod #

stateClosed :: HasState mod => mod #

stateAll :: HasState mod => mod #

Pull Requests

Issues

optionsLabels :: (HasLabels mod, Foldable f) => f (Name IssueLabel) -> mod #

optionsSince :: HasSince mod => UTCTime -> mod #

optionsSinceAll :: HasSince mod => mod #

Repo issues

optionsIrrelevantMilestone :: IssueRepoMod #

Don't care about milestones.

optionsAnyMilestone means there should be some milestone, but it can be any.

See https://developer.github.com/v3/issues/#list-issues-for-a-repository

Data

data IssueState #

Constructors

StateOpen 
StateClosed 

Instances

Bounded IssueState # 
Enum IssueState # 
Eq IssueState # 
Data IssueState # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> IssueState -> c IssueState #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c IssueState #

toConstr :: IssueState -> Constr #

dataTypeOf :: IssueState -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c IssueState) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c IssueState) #

gmapT :: (forall b. Data b => b -> b) -> IssueState -> IssueState #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> IssueState -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> IssueState -> r #

gmapQ :: (forall d. Data d => d -> u) -> IssueState -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> IssueState -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> IssueState -> m IssueState #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> IssueState -> m IssueState #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> IssueState -> m IssueState #

Ord IssueState # 
Show IssueState # 
Generic IssueState # 

Associated Types

type Rep IssueState :: * -> * #

ToJSON IssueState # 
FromJSON IssueState # 
Binary IssueState # 
NFData IssueState # 

Methods

rnf :: IssueState -> () #

type Rep IssueState # 
type Rep IssueState = D1 (MetaData "IssueState" "GitHub.Data.Options" "github-0.16.0-1eEADOe6VzR9O6v5ijkXoG" False) ((:+:) (C1 (MetaCons "StateOpen" PrefixI False) U1) (C1 (MetaCons "StateClosed" PrefixI False) U1))

data MergeableState #

PullRequest mergeable_state

Instances

Bounded MergeableState # 
Enum MergeableState # 
Eq MergeableState # 
Data MergeableState # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> MergeableState -> c MergeableState #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c MergeableState #

toConstr :: MergeableState -> Constr #

dataTypeOf :: MergeableState -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c MergeableState) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c MergeableState) #

gmapT :: (forall b. Data b => b -> b) -> MergeableState -> MergeableState #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> MergeableState -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> MergeableState -> r #

gmapQ :: (forall d. Data d => d -> u) -> MergeableState -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> MergeableState -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> MergeableState -> m MergeableState #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> MergeableState -> m MergeableState #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> MergeableState -> m MergeableState #

Ord MergeableState # 
Show MergeableState # 
Generic MergeableState # 

Associated Types

type Rep MergeableState :: * -> * #

ToJSON MergeableState # 
FromJSON MergeableState # 
Binary MergeableState # 
NFData MergeableState # 

Methods

rnf :: MergeableState -> () #

type Rep MergeableState # 
type Rep MergeableState = D1 (MetaData "MergeableState" "GitHub.Data.Options" "github-0.16.0-1eEADOe6VzR9O6v5ijkXoG" False) ((:+:) ((:+:) (C1 (MetaCons "StateUnknown" PrefixI False) U1) (C1 (MetaCons "StateClean" PrefixI False) U1)) ((:+:) (C1 (MetaCons "StateDirty" PrefixI False) U1) ((:+:) (C1 (MetaCons "StateUnstable" PrefixI False) U1) (C1 (MetaCons "StateBlocked" PrefixI False) U1))))

Internal

class HasState mod #

Minimal complete definition

state

class HasDirection mod #

Minimal complete definition

sortDir

Instances

HasDirection IssueRepoMod # 

Methods

sortDir :: SortDirection -> IssueRepoMod

HasDirection IssueMod # 

Methods

sortDir :: SortDirection -> IssueMod

HasDirection PullRequestMod # 

Methods

sortDir :: SortDirection -> PullRequestMod

class HasComments mod where #

Minimal complete definition

sortByComments

Methods

sortByComments :: mod #

class HasLabels mod where #

Minimal complete definition

optionsLabels

Methods

optionsLabels :: Foldable f => f (Name IssueLabel) -> mod #