github-data-0.18: Access to the GitHub API, v3.

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

GitHub.Data.Name

Description

 

Synopsis

Documentation

newtype Name entity Source #

Constructors

N Text 

Instances

Eq (Name entity) Source # 

Methods

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

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

Data entity => Data (Name entity) Source # 

Methods

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

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

toConstr :: Name entity -> Constr #

dataTypeOf :: Name entity -> DataType #

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

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

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

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

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

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

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

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

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

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

Ord (Name entity) Source # 

Methods

compare :: Name entity -> Name entity -> Ordering #

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

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

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

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

max :: Name entity -> Name entity -> Name entity #

min :: Name entity -> Name entity -> Name entity #

Show (Name entity) Source # 

Methods

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

show :: Name entity -> String #

showList :: [Name entity] -> ShowS #

IsString (Name entity) Source # 

Methods

fromString :: String -> Name entity #

Generic (Name entity) Source # 

Associated Types

type Rep (Name entity) :: * -> * #

Methods

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

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

Hashable (Name entity) Source # 

Methods

hashWithSalt :: Int -> Name entity -> Int #

hash :: Name entity -> Int #

ToJSON (Name entity) Source # 

Methods

toJSON :: Name entity -> Value #

toEncoding :: Name entity -> Encoding #

toJSONList :: [Name entity] -> Value #

toEncodingList :: [Name entity] -> Encoding #

ToJSONKey (Name entity) Source #

Since: 0.15.0.0

FromJSON (Name entity) Source # 

Methods

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

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

FromJSONKey (Name entity) Source #

Since: 0.15.0.0

Binary (Name entity) Source # 

Methods

put :: Name entity -> Put #

get :: Get (Name entity) #

putList :: [Name entity] -> Put #

NFData (Name entity) Source # 

Methods

rnf :: Name entity -> () #

IsPathPart (Name a) Source # 

Methods

toPathPart :: Name a -> Text Source #

type Rep (Name entity) Source # 
type Rep (Name entity) = D1 * (MetaData "Name" "GitHub.Data.Name" "github-data-0.18-CynTG9yKCcTHjYnDvzAzWG" True) (C1 * (MetaCons "N" PrefixI False) (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Text)))

mkName :: proxy entity -> Text -> Name entity Source #

Smart constructor for Name

untagName :: Name entity -> Text Source #