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

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

GitHub.Data.Id

Description

 
Synopsis

Documentation

newtype Id entity Source #

Numeric identifier.

Constructors

Id Int 
Instances
Eq (Id entity) Source # 
Instance details

Defined in GitHub.Data.Id

Methods

(==) :: Id entity -> Id entity -> Bool #

(/=) :: Id entity -> Id entity -> Bool #

Data entity => Data (Id entity) Source # 
Instance details

Defined in GitHub.Data.Id

Methods

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

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

toConstr :: Id entity -> Constr #

dataTypeOf :: Id entity -> DataType #

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

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

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

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

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

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

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

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

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

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

Ord (Id entity) Source # 
Instance details

Defined in GitHub.Data.Id

Methods

compare :: Id entity -> Id entity -> Ordering #

(<) :: Id entity -> Id entity -> Bool #

(<=) :: Id entity -> Id entity -> Bool #

(>) :: Id entity -> Id entity -> Bool #

(>=) :: Id entity -> Id entity -> Bool #

max :: Id entity -> Id entity -> Id entity #

min :: Id entity -> Id entity -> Id entity #

Show (Id entity) Source # 
Instance details

Defined in GitHub.Data.Id

Methods

showsPrec :: Int -> Id entity -> ShowS #

show :: Id entity -> String #

showList :: [Id entity] -> ShowS #

Generic (Id entity) Source # 
Instance details

Defined in GitHub.Data.Id

Associated Types

type Rep (Id entity) :: Type -> Type #

Methods

from :: Id entity -> Rep (Id entity) x #

to :: Rep (Id entity) x -> Id entity #

Hashable (Id entity) Source # 
Instance details

Defined in GitHub.Data.Id

Methods

hashWithSalt :: Int -> Id entity -> Int #

hash :: Id entity -> Int #

ToJSON (Id entity) Source # 
Instance details

Defined in GitHub.Data.Id

Methods

toJSON :: Id entity -> Value #

toEncoding :: Id entity -> Encoding #

toJSONList :: [Id entity] -> Value #

toEncodingList :: [Id entity] -> Encoding #

FromJSON (Id entity) Source # 
Instance details

Defined in GitHub.Data.Id

Methods

parseJSON :: Value -> Parser (Id entity) #

parseJSONList :: Value -> Parser [Id entity] #

Binary (Id entity) Source # 
Instance details

Defined in GitHub.Data.Id

Methods

put :: Id entity -> Put #

get :: Get (Id entity) #

putList :: [Id entity] -> Put #

NFData (Id entity) Source # 
Instance details

Defined in GitHub.Data.Id

Methods

rnf :: Id entity -> () #

IsPathPart (Id a) Source # 
Instance details

Defined in GitHub.Data.Request

Methods

toPathPart :: Id a -> Text Source #

type Rep (Id entity) Source # 
Instance details

Defined in GitHub.Data.Id

type Rep (Id entity) = D1 (MetaData "Id" "GitHub.Data.Id" "github-0.23-11dKNrzUdUsEui3iNni5w1" True) (C1 (MetaCons "Id" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int)))

mkId :: proxy entity -> Int -> Id entity Source #

Smart constructor for Id.

untagId :: Id entity -> Int Source #