github-0.23: Access to the GitHub API, v3.
LicenseBSD-3-Clause
MaintainerOleg Grenrus <oleg.grenrus@iki.fi>
Safe HaskellNone
LanguageHaskell2010

GitHub.Data.Options

Description

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

Synopsis

Common modifiers

stateOpen :: HasState mod => mod Source #

stateAll :: HasState mod => mod Source #

Pull Requests

Issues

data IssueMod Source #

Instances

Instances details
Semigroup IssueMod Source # 
Instance details

Defined in GitHub.Data.Options

Methods

(<>) :: IssueMod -> IssueMod -> IssueMod #

sconcat :: NonEmpty IssueMod -> IssueMod #

stimes :: Integral b => b -> IssueMod -> IssueMod #

Monoid IssueMod Source # 
Instance details

Defined in GitHub.Data.Options

HasSince IssueMod Source # 
Instance details

Defined in GitHub.Data.Options

HasLabels IssueMod Source # 
Instance details

Defined in GitHub.Data.Options

Methods

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

HasComments IssueMod Source # 
Instance details

Defined in GitHub.Data.Options

HasCreatedUpdated IssueMod Source # 
Instance details

Defined in GitHub.Data.Options

HasDirection IssueMod Source # 
Instance details

Defined in GitHub.Data.Options

Methods

sortDir :: SortDirection -> IssueMod

HasState IssueMod Source # 
Instance details

Defined in GitHub.Data.Options

Methods

state :: Maybe IssueState -> IssueMod

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

Repo issues

optionsIrrelevantMilestone :: IssueRepoMod Source #

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 Source #

Constructors

StateOpen 
StateClosed 

Instances

Instances details
Bounded IssueState Source # 
Instance details

Defined in GitHub.Data.Options

Enum IssueState Source # 
Instance details

Defined in GitHub.Data.Options

Eq IssueState Source # 
Instance details

Defined in GitHub.Data.Options

Methods

(==) :: IssueState -> IssueState -> Bool

(/=) :: IssueState -> IssueState -> Bool

Data IssueState Source # 
Instance details

Defined in GitHub.Data.Options

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 :: forall r r'. (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 Source # 
Instance details

Defined in GitHub.Data.Options

Show IssueState Source # 
Instance details

Defined in GitHub.Data.Options

Methods

showsPrec :: Int -> IssueState -> ShowS

show :: IssueState -> String

showList :: [IssueState] -> ShowS

Generic IssueState Source # 
Instance details

Defined in GitHub.Data.Options

Associated Types

type Rep IssueState :: Type -> Type

Methods

from :: IssueState -> Rep IssueState x

to :: Rep IssueState x -> IssueState

ToJSON IssueState Source # 
Instance details

Defined in GitHub.Data.Options

FromJSON IssueState Source # 
Instance details

Defined in GitHub.Data.Options

NFData IssueState Source # 
Instance details

Defined in GitHub.Data.Options

Methods

rnf :: IssueState -> () #

Binary IssueState Source # 
Instance details

Defined in GitHub.Data.Options

Methods

put :: IssueState -> Put

get :: Get IssueState

putList :: [IssueState] -> Put

type Rep IssueState Source # 
Instance details

Defined in GitHub.Data.Options

type Rep IssueState = D1 ('MetaData "IssueState" "GitHub.Data.Options" "github-0.23-HmkN3tTTTlmFoW05QtYbru" 'False) (C1 ('MetaCons "StateOpen" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "StateClosed" 'PrefixI 'False) (U1 :: Type -> Type))

data MergeableState Source #

PullRequest mergeable_state

Instances

Instances details
Bounded MergeableState Source # 
Instance details

Defined in GitHub.Data.Options

Enum MergeableState Source # 
Instance details

Defined in GitHub.Data.Options

Eq MergeableState Source # 
Instance details

Defined in GitHub.Data.Options

Data MergeableState Source # 
Instance details

Defined in GitHub.Data.Options

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 :: forall r r'. (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 Source # 
Instance details

Defined in GitHub.Data.Options

Show MergeableState Source # 
Instance details

Defined in GitHub.Data.Options

Methods

showsPrec :: Int -> MergeableState -> ShowS

show :: MergeableState -> String

showList :: [MergeableState] -> ShowS

Generic MergeableState Source # 
Instance details

Defined in GitHub.Data.Options

Associated Types

type Rep MergeableState :: Type -> Type

ToJSON MergeableState Source # 
Instance details

Defined in GitHub.Data.Options

FromJSON MergeableState Source # 
Instance details

Defined in GitHub.Data.Options

NFData MergeableState Source # 
Instance details

Defined in GitHub.Data.Options

Methods

rnf :: MergeableState -> () #

Binary MergeableState Source # 
Instance details

Defined in GitHub.Data.Options

Methods

put :: MergeableState -> Put

get :: Get MergeableState

putList :: [MergeableState] -> Put

type Rep MergeableState Source # 
Instance details

Defined in GitHub.Data.Options

type Rep MergeableState = D1 ('MetaData "MergeableState" "GitHub.Data.Options" "github-0.23-HmkN3tTTTlmFoW05QtYbru" 'False) ((C1 ('MetaCons "StateUnknown" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "StateClean" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "StateDirty" 'PrefixI 'False) (U1 :: Type -> Type))) :+: (C1 ('MetaCons "StateUnstable" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "StateBlocked" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "StateBehind" 'PrefixI 'False) (U1 :: Type -> Type))))

Internal

class HasState mod Source #

Minimal complete definition

state

Instances

Instances details
HasState IssueRepoMod Source # 
Instance details

Defined in GitHub.Data.Options

Methods

state :: Maybe IssueState -> IssueRepoMod

HasState IssueMod Source # 
Instance details

Defined in GitHub.Data.Options

Methods

state :: Maybe IssueState -> IssueMod

HasState PullRequestMod Source # 
Instance details

Defined in GitHub.Data.Options

Methods

state :: Maybe IssueState -> PullRequestMod

class HasDirection mod Source #

Minimal complete definition

sortDir

Instances

Instances details
HasDirection IssueRepoMod Source # 
Instance details

Defined in GitHub.Data.Options

Methods

sortDir :: SortDirection -> IssueRepoMod

HasDirection IssueMod Source # 
Instance details

Defined in GitHub.Data.Options

Methods

sortDir :: SortDirection -> IssueMod

HasDirection PullRequestMod Source # 
Instance details

Defined in GitHub.Data.Options

Methods

sortDir :: SortDirection -> PullRequestMod

class HasComments mod Source #

Minimal complete definition

sortByComments

Instances

Instances details
HasComments IssueRepoMod Source # 
Instance details

Defined in GitHub.Data.Options

HasComments IssueMod Source # 
Instance details

Defined in GitHub.Data.Options

class HasLabels mod Source #

Minimal complete definition

optionsLabels

Instances

Instances details
HasLabels IssueRepoMod Source # 
Instance details

Defined in GitHub.Data.Options

Methods

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

HasLabels IssueMod Source # 
Instance details

Defined in GitHub.Data.Options

Methods

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

class HasSince mod Source #

Minimal complete definition

optionsSince, optionsSinceAll