amazonka-core-1.4.5: Core data types and functionality for Amazonka libraries.

Copyright(c) 2013-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityprovisional
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.Data.Text

Contents

Description

 

Synopsis

Documentation

data Text :: * #

A space efficient, packed, unboxed Unicode text type.

Instances

Hashable Text 

Methods

hashWithSalt :: Int -> Text -> Int #

hash :: Text -> Int #

ToJSON Text 
KeyValue Pair 

Methods

(.=) :: ToJSON v => Text -> v -> Pair #

ToJSONKey Text 
FromJSON Text 
FromJSONKey Text 
Chunk Text 
FoldCase Text 

Methods

foldCase :: Text -> Text #

foldCaseList :: [Text] -> [Text]

Ixed Text 
ToText Text # 

Methods

toText :: Text -> Text #

FromText Text # 

Methods

parser :: Parser Text #

ToByteString Text # 

Methods

toBS :: Text -> ByteString #

ToHeader Text # 

Methods

toHeader :: HeaderName -> Text -> [Header] #

ToPath Text # 

Methods

toPath :: Text -> ByteString #

ToQuery Text # 

Methods

toQuery :: Text -> QueryString #

ToLog Text # 

Methods

build :: Text -> Builder #

ToXML Text # 

Methods

toXML :: Text -> XML #

FromXML Text # 

Methods

parseXML :: [Node] -> Either String Text #

ToBody Text # 

Methods

toBody :: Text -> RqBody #

ToHashedBody Text # 

Methods

toHashed :: Text -> HashedBody #

Strict Text Text 

Methods

strict :: Iso' Text Text #

AWSTruncated (Maybe Text) # 

Methods

truncated :: Maybe Text -> Bool #

ToBody (HashMap Text Value) # 
ToHashedBody (HashMap Text Value) # 
type State Text 
type State Text = Buffer
type ChunkElem Text 
type Item Text 
type Item Text = Char
type Index Text 
type Index Text = Int
type IxValue Text 

Deserialisation

fromTextError :: Text -> Parser a #

Fail parsing with a Text error.

Constrained to the actual attoparsec monad to avoid exposing fail usage directly.

Serialisation

class ToText a where #

Minimal complete definition

toText

Methods

toText :: a -> Text #

Instances

ToText Bool # 

Methods

toText :: Bool -> Text #

ToText Char # 

Methods

toText :: Char -> Text #

ToText Double # 

Methods

toText :: Double -> Text #

ToText Int # 

Methods

toText :: Int -> Text #

ToText Int64 # 

Methods

toText :: Int64 -> Text #

ToText Integer # 

Methods

toText :: Integer -> Text #

ToText ByteString # 

Methods

toText :: ByteString -> Text #

ToText Scientific # 

Methods

toText :: Scientific -> Text #

ToText String # 

Methods

toText :: String -> Text #

ToText Text # 

Methods

toText :: Text -> Text #

ToText Natural # 

Methods

toText :: Natural -> Text #

ToText StdMethod # 

Methods

toText :: StdMethod -> Text #

ToText Nat # 

Methods

toText :: Nat -> Text #

ToText Seconds # 

Methods

toText :: Seconds -> Text #

ToText Region # 

Methods

toText :: Region -> Text #

ToText SessionToken # 

Methods

toText :: SessionToken -> Text #

ToText SecretKey # 

Methods

toText :: SecretKey -> Text #

ToText AccessKey # 

Methods

toText :: AccessKey -> Text #

ToText LogLevel # 

Methods

toText :: LogLevel -> Text #

ToText RequestId # 

Methods

toText :: RequestId -> Text #

ToText ErrorMessage # 

Methods

toText :: ErrorMessage -> Text #

ToText ErrorCode # 

Methods

toText :: ErrorCode -> Text #

ToText Abbrev # 

Methods

toText :: Abbrev -> Text #

ToText Base64 # 

Methods

toText :: Base64 -> Text #

ToText POSIX # 

Methods

toText :: POSIX -> Text #

ToText AWSTime # 

Methods

toText :: AWSTime -> Text #

ToText BasicTime # 

Methods

toText :: BasicTime -> Text #

ToText ISO8601 # 

Methods

toText :: ISO8601 -> Text #

ToText RFC822 # 

Methods

toText :: RFC822 -> Text #

ToText a => ToText (CI a) # 

Methods

toText :: CI a -> Text #

ToText (Digest a) # 

Methods

toText :: Digest a -> Text #

ToText a => ToText (Sensitive a) # 

Methods

toText :: Sensitive a -> Text #

toTextCI :: ToText a => a -> CI Text #

showText :: ToText a => a -> String #