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

Copyright(c) 2013-2018 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 #

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 
Reversing Text 

Methods

reversing :: Text -> Text #

SemiSequence Text 

Associated Types

type Index Text :: * #

IsSequence Text 

Methods

fromList :: [Element Text] -> Text #

lengthIndex :: Text -> Index Text #

break :: (Element Text -> Bool) -> Text -> (Text, Text) #

span :: (Element Text -> Bool) -> Text -> (Text, Text) #

dropWhile :: (Element Text -> Bool) -> Text -> Text #

takeWhile :: (Element Text -> Bool) -> Text -> Text #

splitAt :: Index Text -> Text -> (Text, Text) #

unsafeSplitAt :: Index Text -> Text -> (Text, Text) #

take :: Index Text -> Text -> Text #

unsafeTake :: Index Text -> Text -> Text #

drop :: Index Text -> Text -> Text #

unsafeDrop :: Index Text -> Text -> Text #

dropEnd :: Index Text -> Text -> Text #

partition :: (Element Text -> Bool) -> Text -> (Text, Text) #

uncons :: Text -> Maybe (Element Text, Text) #

unsnoc :: Text -> Maybe (Text, Element Text) #

filter :: (Element Text -> Bool) -> Text -> Text #

filterM :: Monad m => (Element Text -> m Bool) -> Text -> m Text #

replicate :: Index Text -> Element Text -> Text #

replicateM :: Monad m => Index Text -> m (Element Text) -> m Text #

groupBy :: (Element Text -> Element Text -> Bool) -> Text -> [Text] #

groupAllOn :: Eq b => (Element Text -> b) -> Text -> [Text] #

subsequences :: Text -> [Text] #

permutations :: Text -> [Text] #

tailEx :: Text -> Text #

tailMay :: Text -> Maybe Text #

initEx :: Text -> Text #

initMay :: Text -> Maybe Text #

unsafeTail :: Text -> Text #

unsafeInit :: Text -> Text #

index :: Text -> Index Text -> Maybe (Element Text) #

indexEx :: Text -> Index Text -> Element Text #

unsafeIndex :: Text -> Index Text -> Element Text #

splitWhen :: (Element Text -> Bool) -> Text -> [Text] #

Textual Text 

Methods

words :: Text -> [Text] #

unwords :: ((* ~ Element seq) Text, MonoFoldable seq) => seq -> Text #

lines :: Text -> [Text] #

unlines :: ((* ~ Element seq) Text, MonoFoldable seq) => seq -> Text #

toLower :: Text -> Text #

toUpper :: Text -> Text #

toCaseFold :: Text -> Text #

breakWord :: Text -> (Text, Text) #

breakLine :: Text -> (Text, Text) #

MonoFunctor Text 

Methods

omap :: (Element Text -> Element Text) -> Text -> Text #

MonoFoldable Text 

Methods

ofoldMap :: Monoid m => (Element Text -> m) -> Text -> m #

ofoldr :: (Element Text -> b -> b) -> b -> Text -> b #

ofoldl' :: (a -> Element Text -> a) -> a -> Text -> a #

otoList :: Text -> [Element Text] #

oall :: (Element Text -> Bool) -> Text -> Bool #

oany :: (Element Text -> Bool) -> Text -> Bool #

onull :: Text -> Bool #

olength :: Text -> Int #

olength64 :: Text -> Int64 #

ocompareLength :: Integral i => Text -> i -> Ordering #

otraverse_ :: Applicative f => (Element Text -> f b) -> Text -> f () #

ofor_ :: Applicative f => Text -> (Element Text -> f b) -> f () #

omapM_ :: Applicative m => (Element Text -> m ()) -> Text -> m () #

oforM_ :: Applicative m => Text -> (Element Text -> m ()) -> m () #

ofoldlM :: Monad m => (a -> Element Text -> m a) -> a -> Text -> m a #

ofoldMap1Ex :: Semigroup m => (Element Text -> m) -> Text -> m #

ofoldr1Ex :: (Element Text -> Element Text -> Element Text) -> Text -> Element Text #

ofoldl1Ex' :: (Element Text -> Element Text -> Element Text) -> Text -> Element Text #

headEx :: Text -> Element Text #

lastEx :: Text -> Element Text #

unsafeHead :: Text -> Element Text #

unsafeLast :: Text -> Element Text #

maximumByEx :: (Element Text -> Element Text -> Ordering) -> Text -> Element Text #

minimumByEx :: (Element Text -> Element Text -> Ordering) -> Text -> Element Text #

oelem :: Element Text -> Text -> Bool #

onotElem :: Element Text -> Text -> Bool #

MonoTraversable Text 

Methods

otraverse :: Applicative f => (Element Text -> f (Element Text)) -> Text -> f Text #

omapM :: Applicative m => (Element Text -> m (Element Text)) -> Text -> m Text #

MonoPointed Text 

Methods

opoint :: Element Text -> Text #

GrowingAppend Text 
ToText Text Source # 

Methods

toText :: Text -> Text Source #

FromText Text Source # 
ToByteString Text Source # 

Methods

toBS :: Text -> ByteString Source #

ToQuery Text Source # 
ToPath Text Source # 
ToHeader 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 #

LazySequence Text Text 
Utf8 Text ByteString 
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 
type Index Text 
type Index Text = Int
type Element 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 Natural Source # 
FromText ByteString Source # 
FromText Scientific Source # 
FromText Text Source # 
FromText StdMethod Source # 
FromText POSIX Source # 
FromText AWSTime Source # 
FromText BasicTime Source # 
FromText ISO8601 Source # 
FromText RFC822 Source # 
FromText Nat Source # 
FromText Base64 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 Natural Source # 

Methods

toText :: Natural -> 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 StdMethod 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 Nat Source # 

Methods

toText :: Nat -> Text Source #

ToText Base64 Source # 

Methods

toText :: Base64 -> 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 #