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

GitHub.Data.RateLimit

Description

 
Synopsis

Documentation

data Limits Source #

Constructors

Limits 

Instances

Instances details
Generic Limits Source # 
Instance details

Defined in GitHub.Data.RateLimit

Associated Types

type Rep Limits :: Type -> Type #

Methods

from :: Limits -> Rep Limits x #

to :: Rep Limits x -> Limits #

Show Limits Source # 
Instance details

Defined in GitHub.Data.RateLimit

Binary Limits Source # 
Instance details

Defined in GitHub.Data.RateLimit

Methods

put :: Limits -> Put #

get :: Get Limits #

putList :: [Limits] -> Put #

NFData Limits Source # 
Instance details

Defined in GitHub.Data.RateLimit

Methods

rnf :: Limits -> () #

Eq Limits Source # 
Instance details

Defined in GitHub.Data.RateLimit

Methods

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

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

Ord Limits Source # 
Instance details

Defined in GitHub.Data.RateLimit

FromJSON Limits Source # 
Instance details

Defined in GitHub.Data.RateLimit

Methods

parseJSON :: Value -> Parser Limits #

parseJSONList :: Value -> Parser [Limits] #

type Rep Limits Source # 
Instance details

Defined in GitHub.Data.RateLimit

type Rep Limits = D1 ('MetaData "Limits" "GitHub.Data.RateLimit" "github-0.28-inplace" 'False) (C1 ('MetaCons "Limits" 'PrefixI 'True) (S1 ('MetaSel ('Just "limitsMax") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Int) :*: (S1 ('MetaSel ('Just "limitsRemaining") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "limitsReset") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 SystemTime))))

data RateLimit Source #

Instances

Instances details
Generic RateLimit Source # 
Instance details

Defined in GitHub.Data.RateLimit

Associated Types

type Rep RateLimit :: Type -> Type #

Show RateLimit Source # 
Instance details

Defined in GitHub.Data.RateLimit

Binary RateLimit Source # 
Instance details

Defined in GitHub.Data.RateLimit

NFData RateLimit Source # 
Instance details

Defined in GitHub.Data.RateLimit

Methods

rnf :: RateLimit -> () #

Eq RateLimit Source # 
Instance details

Defined in GitHub.Data.RateLimit

Ord RateLimit Source # 
Instance details

Defined in GitHub.Data.RateLimit

FromJSON RateLimit Source # 
Instance details

Defined in GitHub.Data.RateLimit

Methods

parseJSON :: Value -> Parser RateLimit #

parseJSONList :: Value -> Parser [RateLimit] #

type Rep RateLimit Source # 
Instance details

Defined in GitHub.Data.RateLimit

type Rep RateLimit = D1 ('MetaData "RateLimit" "GitHub.Data.RateLimit" "github-0.28-inplace" 'False) (C1 ('MetaCons "RateLimit" 'PrefixI 'True) (S1 ('MetaSel ('Just "rateLimitCore") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Limits) :*: (S1 ('MetaSel ('Just "rateLimitSearch") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Limits) :*: S1 ('MetaSel ('Just "rateLimitGraphQL") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Limits))))

limitsFromHttpResponse :: Response a -> Maybe Limits Source #

Since: 0.24