twilio-0.3.0.0: Twilio REST API library for Haskell

Copyright(C) 2017- Mark Andrus Roberts
LicenseBSD-style (see the file LICENSE)
MaintainerMark Andrus Roberts <markandrusroberts@gmail.com>
Stabilityprovisional
Safe HaskellNone
LanguageHaskell98

Twilio.Types.SID

Description

This module defines all of the SIDs (string identifiers) for Twilio resources in a single place.

Synopsis

Documentation

data SID (a :: Alpha) (b :: Alpha) Source #

A SID (string identifier) is a 34-character string. The first two characters are capital letters A through Z; the remaining 32 characters represent a 128-bit natural number in hexadecimal.

Constructors

SID !Word64 !Word64 
Instances
Bounded (SID a b) Source # 
Instance details

Defined in Twilio.Types.SID

Methods

minBound :: SID a b #

maxBound :: SID a b #

Eq (SID a b) Source # 
Instance details

Defined in Twilio.Types.SID

Methods

(==) :: SID a b -> SID a b -> Bool #

(/=) :: SID a b -> SID a b -> Bool #

(Typeable a, Typeable b) => Data (SID a b) Source # 
Instance details

Defined in Twilio.Types.SID

Methods

gfoldl :: (forall d b0. Data d => c (d -> b0) -> d -> c b0) -> (forall g. g -> c g) -> SID a b -> c (SID a b) #

gunfold :: (forall b0 r. Data b0 => c (b0 -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c (SID a b) #

toConstr :: SID a b -> Constr #

dataTypeOf :: SID a b -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c (SID a b)) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c (SID a b)) #

gmapT :: (forall b0. Data b0 => b0 -> b0) -> SID a b -> SID a b #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> SID a b -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> SID a b -> r #

gmapQ :: (forall d. Data d => d -> u) -> SID a b -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> SID a b -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> SID a b -> m (SID a b) #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> SID a b -> m (SID a b) #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> SID a b -> m (SID a b) #

Ord (SID a b) Source # 
Instance details

Defined in Twilio.Types.SID

Methods

compare :: SID a b -> SID a b -> Ordering #

(<) :: SID a b -> SID a b -> Bool #

(<=) :: SID a b -> SID a b -> Bool #

(>) :: SID a b -> SID a b -> Bool #

(>=) :: SID a b -> SID a b -> Bool #

max :: SID a b -> SID a b -> SID a b #

min :: SID a b -> SID a b -> SID a b #

(IsAlpha a, IsAlpha b) => Read (SID a b) Source # 
Instance details

Defined in Twilio.Types.SID

Methods

readsPrec :: Int -> ReadS (SID a b) #

readList :: ReadS [SID a b] #

readPrec :: ReadPrec (SID a b) #

readListPrec :: ReadPrec [SID a b] #

(IsAlpha a, IsAlpha b) => Show (SID a b) Source # 
Instance details

Defined in Twilio.Types.SID

Methods

showsPrec :: Int -> SID a b -> ShowS #

show :: SID a b -> String #

showList :: [SID a b] -> ShowS #

Ix (SID a b) Source # 
Instance details

Defined in Twilio.Types.SID

Methods

range :: (SID a b, SID a b) -> [SID a b] #

index :: (SID a b, SID a b) -> SID a b -> Int #

unsafeIndex :: (SID a b, SID a b) -> SID a b -> Int

inRange :: (SID a b, SID a b) -> SID a b -> Bool #

rangeSize :: (SID a b, SID a b) -> Int #

unsafeRangeSize :: (SID a b, SID a b) -> Int

(IsAlpha a, IsAlpha b) => IsString (SID a b) Source # 
Instance details

Defined in Twilio.Types.SID

Methods

fromString :: String -> SID a b #

Generic (SID a b) Source # 
Instance details

Defined in Twilio.Types.SID

Associated Types

type Rep (SID a b) :: Type -> Type #

Methods

from :: SID a b -> Rep (SID a b) x #

to :: Rep (SID a b) x -> SID a b #

Hashable (SID a b) Source # 
Instance details

Defined in Twilio.Types.SID

Methods

hashWithSalt :: Int -> SID a b -> Int #

hash :: SID a b -> Int #

(IsAlpha a, IsAlpha b) => ToJSON (SID a b) Source # 
Instance details

Defined in Twilio.Types.SID

Methods

toJSON :: SID a b -> Value #

toEncoding :: SID a b -> Encoding #

toJSONList :: [SID a b] -> Value #

toEncodingList :: [SID a b] -> Encoding #

(IsAlpha a, IsAlpha b) => FromJSON (SID a b) Source # 
Instance details

Defined in Twilio.Types.SID

Methods

parseJSON :: Value -> Parser (SID a b) #

parseJSONList :: Value -> Parser [SID a b] #

Binary (SID a b) Source # 
Instance details

Defined in Twilio.Types.SID

Methods

put :: SID a b -> Put #

get :: Get (SID a b) #

putList :: [SID a b] -> Put #

NFData (SID a b) Source # 
Instance details

Defined in Twilio.Types.SID

Methods

rnf :: SID a b -> () #

(IsAlpha a, IsAlpha b) => IsSID (SID a b) Source # 
Instance details

Defined in Twilio.Types.SID

Methods

getSID :: SID a b -> Text Source #

parseSID :: Text -> Maybe (SID a b) Source #

type Rep (SID a b) Source # 
Instance details

Defined in Twilio.Types.SID

class IsSID sid where Source #

Methods

getSID :: sid -> Text Source #

parseSID :: Text -> Maybe sid Source #

Instances
IsSID AccountSID Source # 
Instance details

Defined in Twilio.Types.SIDs

IsSID AddressSID Source # 
Instance details

Defined in Twilio.Types.SIDs

IsSID APIKeySID Source # 
Instance details

Defined in Twilio.Types.SIDs

IsSID ApplicationSID Source # 
Instance details

Defined in Twilio.Types.SIDs

IsSID CallSID Source # 
Instance details

Defined in Twilio.Types.SIDs

IsSID ConferenceSID Source # 
Instance details

Defined in Twilio.Types.SIDs

IsSID ConnectAppSID Source # 
Instance details

Defined in Twilio.Types.SIDs

IsSID CredentialSID Source # 
Instance details

Defined in Twilio.Types.SIDs

IsSID CredentialListSID Source # 
Instance details

Defined in Twilio.Types.SIDs

IsSID DomainSID Source # 
Instance details

Defined in Twilio.Types.SIDs

IsSID FeedbackSummarySID Source # 
Instance details

Defined in Twilio.Types.SIDs

IsSID IPAccessControlListSID Source # 
Instance details

Defined in Twilio.Types.SIDs

IsSID IPAddressSID Source # 
Instance details

Defined in Twilio.Types.SIDs

IsSID MediaSID Source # 
Instance details

Defined in Twilio.Types.SIDs

IsSID MMSMessageSID Source # 
Instance details

Defined in Twilio.Types.SIDs

IsSID MessagingServiceSID Source # 
Instance details

Defined in Twilio.Types.SIDs

IsSID PhoneNumberSID Source # 
Instance details

Defined in Twilio.Types.SIDs

IsSID QueueSID Source # 
Instance details

Defined in Twilio.Types.SIDs

IsSID RecordingSID Source # 
Instance details

Defined in Twilio.Types.SIDs

IsSID ShortCodeSID Source # 
Instance details

Defined in Twilio.Types.SIDs

IsSID SMSMessageSID Source # 
Instance details

Defined in Twilio.Types.SIDs

IsSID TranscriptionSID Source # 
Instance details

Defined in Twilio.Types.SIDs

IsSID MessageSID Source # 
Instance details

Defined in Twilio.Types.SIDs

IsSID UsageTriggerSID Source # 
Instance details

Defined in Twilio.Types.SIDs

(IsAlpha a, IsAlpha b) => IsSID (SID a b) Source # 
Instance details

Defined in Twilio.Types.SID

Methods

getSID :: SID a b -> Text Source #

parseSID :: Text -> Maybe (SID a b) Source #

readSID :: forall a b. (IsAlpha a, IsAlpha b) => ReadPrec (SID a b) Source #

parseSIDFromText :: forall m a b. (MonadPlus m, IsAlpha a, IsAlpha b) => Text -> m (SID a b) Source #

sidToJSON :: (IsAlpha a, IsAlpha b) => SID a b -> Value Source #

sidToText :: (IsAlpha a, IsAlpha b) => SID a b -> Text Source #