github-0.29: Access to the GitHub API, v3.
Safe HaskellSafe-Inferred
LanguageHaskell2010

GitHub.Data.Id

Synopsis

Documentation

newtype Id entity Source #

Numeric identifier.

Constructors

Id Int 

Instances

Instances details
FromJSON (Id entity) Source # 
Instance details

Defined in GitHub.Data.Id

Methods

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

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

ToJSON (Id entity) Source # 
Instance details

Defined in GitHub.Data.Id

Methods

toJSON :: Id entity -> Value Source #

toEncoding :: Id entity -> Encoding Source #

toJSONList :: [Id entity] -> Value Source #

toEncodingList :: [Id entity] -> Encoding Source #

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

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

toConstr :: Id entity -> Constr Source #

dataTypeOf :: Id entity -> DataType Source #

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

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

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

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

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

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

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

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

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

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

Generic (Id entity) Source # 
Instance details

Defined in GitHub.Data.Id

Associated Types

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

Methods

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

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

Show (Id entity) Source # 
Instance details

Defined in GitHub.Data.Id

Methods

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

show :: Id entity -> String Source #

showList :: [Id entity] -> ShowS Source #

Binary (Id entity) Source # 
Instance details

Defined in GitHub.Data.Id

Methods

put :: Id entity -> Put Source #

get :: Get (Id entity) Source #

putList :: [Id entity] -> Put Source #

NFData (Id entity) Source # 
Instance details

Defined in GitHub.Data.Id

Methods

rnf :: Id entity -> () Source #

Eq (Id entity) Source # 
Instance details

Defined in GitHub.Data.Id

Methods

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

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

Ord (Id entity) Source # 
Instance details

Defined in GitHub.Data.Id

Methods

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

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

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

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

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

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

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

IsPathPart (Id a) Source # 
Instance details

Defined in GitHub.Data.Request

Methods

toPathPart :: Id a -> Text Source #

Hashable (Id entity) Source # 
Instance details

Defined in GitHub.Data.Id

Methods

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

hash :: Id entity -> Int 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.29-7fcpivoKga51PnwspVXqZ5" '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 #