Copyright | (C) 2017- Mark Andrus Roberts |
---|---|
License | BSD-style (see the file LICENSE) |
Maintainer | Mark Andrus Roberts <markandrusroberts@gmail.com> |
Stability | provisional |
Safe Haskell | None |
Language | Haskell98 |
Twilio.Types.SID
Description
This module defines all of the SIDs (string identifiers) for Twilio resources in a single place.
- data SID a b = SID !Word64 !Word64
- class IsSID sid where
- readSID :: forall a b. (IsAlpha a, IsAlpha b) => ReadPrec (SID a b)
- parseSIDFromText :: forall m a b. (MonadPlus m, IsAlpha a, IsAlpha b) => Text -> m (SID a b)
- parseSIDFromJSON :: (MonadPlus m, IsAlpha a, IsAlpha b) => Value -> m (SID a b)
- sidToJSON :: (IsAlpha a, IsAlpha b) => SID a b -> Value
- sidToText :: (IsAlpha a, IsAlpha b) => SID a b -> Text
Documentation
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.
Instances
Bounded (SID a b) # | |
Eq (SID a b) # | |
(Typeable Alpha a, Typeable Alpha b) => Data (SID a b) # | |
Ord (SID a b) # | |
(IsAlpha a, IsAlpha b) => Read (SID a b) # | |
(IsAlpha a, IsAlpha b) => Show (SID a b) # | |
Ix (SID a b) # | |
(IsAlpha a, IsAlpha b) => IsString (SID a b) # | |
Generic (SID a b) # | |
Binary (SID a b) # | |
NFData (SID a b) # | |
(IsAlpha a, IsAlpha b) => ToJSON (SID a b) # | |
(IsAlpha a, IsAlpha b) => FromJSON (SID a b) # | |
Hashable (SID a b) # | |
(IsAlpha a, IsAlpha b) => IsSID (SID a b) # | |
type Rep (SID a b) # | |
Instances