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

Copyright(c) 2013-2017 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@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 #

FromJSON Text 
FromJSONKey Text 
ToJSON Text 
KeyValue Pair 

Methods

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

ToJSONKey Text 
Chunk Text 
FoldCase Text 

Methods

foldCase :: Text -> Text #

foldCaseList :: [Text] -> [Text]

Ixed Text 
Reversing Text 

Methods

reversing :: Text -> Text #

ToText Text Source # 

Methods

toText :: Text -> Text Source #

FromText Text Source # 
ToByteString Text Source # 

Methods

toBS :: Text -> ByteString Source #

ToHeader Text Source # 
ToPath Text Source # 
ToQuery Text Source # 
ToLog Text Source # 

Methods

build :: Text -> Builder Source #

ToXML Text Source # 

Methods

toXML :: Text -> XML Source #

FromXML Text Source # 
ToBody Text Source # 

Methods

toBody :: Text -> RqBody Source #

ToHashedBody Text Source # 
Strict Text Text 

Methods

strict :: Iso' Text Text #

FromPairs Value (DList Pair) 

Methods

fromPairs :: DList Pair -> Value

ToJSON v => GKeyValue v (DList Pair) 

Methods

gPair :: String -> v -> DList Pair

ToBody (HashMap Text Value) Source # 
ToHashedBody (HashMap Text Value) Source # 
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

class FromText a where Source #

Minimal complete definition

parser

Methods

parser :: Parser a Source #

Instances

FromText Bool Source # 
FromText Char Source # 
FromText Double Source # 
FromText Int Source # 
FromText Integer Source # 
FromText ByteString Source # 
FromText Scientific Source # 
FromText Text Source # 
FromText Natural Source # 
FromText StdMethod Source # 
FromText Nat Source # 
FromText Base64 Source # 
FromText AWSTime Source # 
FromText BasicTime Source # 
FromText ISO8601 Source # 
FromText RFC822 Source # 
FromText Region Source # 
FromText SessionToken Source # 
FromText SecretKey Source # 
FromText AccessKey Source # 
FromText LogLevel Source # 
FromText RequestId Source # 
FromText ErrorMessage Source # 
FromText ErrorCode Source # 
FromText Abbrev Source # 
(FoldCase a, FromText a) => FromText (CI a) Source # 

Methods

parser :: Parser (CI a) Source #

FromText a => FromText (Sensitive a) Source # 

fromTextError :: Text -> Parser a Source #

Fail parsing with a Text error.

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

Serialisation

class ToText a where Source #

Minimal complete definition

toText

Methods

toText :: a -> Text Source #

Instances

ToText Bool Source # 

Methods

toText :: Bool -> Text Source #

ToText Char Source # 

Methods

toText :: Char -> Text Source #

ToText Double Source # 

Methods

toText :: Double -> Text Source #

ToText Int Source # 

Methods

toText :: Int -> Text Source #

ToText Int64 Source # 

Methods

toText :: Int64 -> Text Source #

ToText Integer Source # 

Methods

toText :: Integer -> Text Source #

ToText ByteString Source # 
ToText Scientific Source # 
ToText String Source # 

Methods

toText :: String -> Text Source #

ToText Text Source # 

Methods

toText :: Text -> Text Source #

ToText Natural Source # 

Methods

toText :: Natural -> Text Source #

ToText StdMethod Source # 
ToText Nat Source # 

Methods

toText :: Nat -> Text Source #

ToText Base64 Source # 

Methods

toText :: Base64 -> Text Source #

ToText POSIX Source # 

Methods

toText :: POSIX -> Text Source #

ToText AWSTime Source # 

Methods

toText :: AWSTime -> Text Source #

ToText BasicTime Source # 
ToText ISO8601 Source # 

Methods

toText :: ISO8601 -> Text Source #

ToText RFC822 Source # 

Methods

toText :: RFC822 -> Text Source #

ToText Seconds Source # 

Methods

toText :: Seconds -> Text Source #

ToText Region Source # 

Methods

toText :: Region -> Text Source #

ToText SessionToken Source # 
ToText SecretKey Source # 
ToText AccessKey Source # 
ToText LogLevel Source # 

Methods

toText :: LogLevel -> Text Source #

ToText RequestId Source # 
ToText ErrorMessage Source # 
ToText ErrorCode Source # 
ToText Abbrev Source # 

Methods

toText :: Abbrev -> Text Source #

ToText a => ToText (CI a) Source # 

Methods

toText :: CI a -> Text Source #

ToText (Digest a) Source # 

Methods

toText :: Digest a -> Text Source #

ToText a => ToText (Sensitive a) Source # 

Methods

toText :: Sensitive a -> Text Source #

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