amazonka-core-2.0: Core data types and functionality for Amazonka libraries.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityprovisional
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.Data.Text

Description

 
Synopsis

Documentation

data Text Source #

A space efficient, packed, unboxed Unicode text type.

Instances

Instances details
FromJSON Text 
Instance details

Defined in Data.Aeson.Types.FromJSON

FromJSONKey Text 
Instance details

Defined in Data.Aeson.Types.FromJSON

ToJSON Text 
Instance details

Defined in Data.Aeson.Types.ToJSON

ToJSONKey Text 
Instance details

Defined in Data.Aeson.Types.ToJSON

ToBody Text Source # 
Instance details

Defined in Amazonka.Data.Body

ToHashedBody Text Source # 
Instance details

Defined in Amazonka.Data.Body

ToByteString Text Source # 
Instance details

Defined in Amazonka.Data.ByteString

Methods

toBS :: Text -> ByteString Source #

ToHeader Text Source # 
Instance details

Defined in Amazonka.Data.Headers

ToLog Text Source # 
Instance details

Defined in Amazonka.Data.Log

ToPath Text Source # 
Instance details

Defined in Amazonka.Data.Path

ToQuery Text Source # 
Instance details

Defined in Amazonka.Data.Query

FromText Text Source # 
Instance details

Defined in Amazonka.Data.Text

ToText Text Source # 
Instance details

Defined in Amazonka.Data.Text

Methods

toText :: Text -> Text Source #

FromXML Text Source # 
Instance details

Defined in Amazonka.Data.XML

ToXML Text Source # 
Instance details

Defined in Amazonka.Data.XML

Methods

toXML :: Text -> XML Source #

Chunk Text 
Instance details

Defined in Data.Attoparsec.Internal.Types

Associated Types

type ChunkElem Text

Methods

nullChunk :: Text -> Bool

pappendChunk :: State Text -> Text -> State Text

atBufferEnd :: Text -> State Text -> Pos

bufferElemAt :: Text -> Pos -> State Text -> Maybe (ChunkElem Text, Int)

chunkElemToChar :: Text -> ChunkElem Text -> Char

FoldCase Text 
Instance details

Defined in Data.CaseInsensitive.Internal

Methods

foldCase :: Text -> Text Source #

foldCaseList :: [Text] -> [Text]

Hashable Text 
Instance details

Defined in Data.Hashable.Class

Ixed Text 
Instance details

Defined in Control.Lens.At

Prefixed Text 
Instance details

Defined in Control.Lens.Prism

Suffixed Text 
Instance details

Defined in Control.Lens.Prism

GrowingAppend Text 
Instance details

Defined in Data.MonoTraversable

MonoFoldable Text 
Instance details

Defined in Data.MonoTraversable

Methods

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

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

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

otoList :: Text -> [Element Text] Source #

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

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

onull :: Text -> Bool Source #

olength :: Text -> Int Source #

olength64 :: Text -> Int64 Source #

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

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

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

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

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

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

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

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

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

headEx :: Text -> Element Text Source #

lastEx :: Text -> Element Text Source #

unsafeHead :: Text -> Element Text Source #

unsafeLast :: Text -> Element Text Source #

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

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

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

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

MonoFunctor Text 
Instance details

Defined in Data.MonoTraversable

Methods

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

MonoPointed Text 
Instance details

Defined in Data.MonoTraversable

MonoTraversable Text 
Instance details

Defined in Data.MonoTraversable

Methods

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

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

IsSequence Text 
Instance details

Defined in Data.Sequences

Methods

fromList :: [Element Text] -> Text Source #

lengthIndex :: Text -> Index Text Source #

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

subsequences :: Text -> [Text] Source #

permutations :: Text -> [Text] Source #

tailEx :: Text -> Text Source #

tailMay :: Text -> Maybe Text Source #

initEx :: Text -> Text Source #

initMay :: Text -> Maybe Text Source #

unsafeTail :: Text -> Text Source #

unsafeInit :: Text -> Text Source #

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

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

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

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

SemiSequence Text 
Instance details

Defined in Data.Sequences

Associated Types

type Index Text Source #

Textual Text 
Instance details

Defined in Data.Sequences

Extract Text

Since: regex-base-0.94.0.0

Instance details

Defined in Text.Regex.Base.RegexLike

LazySequence Text Text 
Instance details

Defined in Data.Sequences

Utf8 Text ByteString 
Instance details

Defined in Data.Sequences

Cons Text Text Char Char 
Instance details

Defined in Control.Lens.Cons

Snoc Text Text Char Char 
Instance details

Defined in Control.Lens.Cons

type ChunkElem Text 
Instance details

Defined in Data.Attoparsec.Internal.Types

type ChunkElem Text = Char
type State Text 
Instance details

Defined in Data.Attoparsec.Internal.Types

type State Text = Buffer
type Item Text 
Instance details

Defined in Data.Text

type Item Text = Char
type Index Text 
Instance details

Defined in Control.Lens.At

type Index Text = Int
type IxValue Text 
Instance details

Defined in Control.Lens.At

type Element Text 
Instance details

Defined in Data.MonoTraversable

type Index Text 
Instance details

Defined in Data.Sequences

type Index Text = Int

Deserialisation

class FromText a where Source #

Instances

Instances details
FromText Base64 Source # 
Instance details

Defined in Amazonka.Data.Base64

FromText Abbrev Source # 
Instance details

Defined in Amazonka.Types

FromText AccessKey Source # 
Instance details

Defined in Amazonka.Types

FromText ErrorCode Source # 
Instance details

Defined in Amazonka.Types

FromText ErrorMessage Source # 
Instance details

Defined in Amazonka.Types

FromText Region Source # 
Instance details

Defined in Amazonka.Types

FromText RequestId Source # 
Instance details

Defined in Amazonka.Types

FromText Seconds Source # 
Instance details

Defined in Amazonka.Types

FromText SecretKey Source # 
Instance details

Defined in Amazonka.Types

FromText SessionToken Source # 
Instance details

Defined in Amazonka.Types

FromText Int64 Source # 
Instance details

Defined in Amazonka.Data.Text

FromText ByteString Source # 
Instance details

Defined in Amazonka.Data.Text

FromText StdMethod Source # 
Instance details

Defined in Amazonka.Data.Text

FromText Scientific Source # 
Instance details

Defined in Amazonka.Data.Text

FromText Text Source # 
Instance details

Defined in Amazonka.Data.Text

FromText String Source # 
Instance details

Defined in Amazonka.Data.Text

FromText Integer Source # 
Instance details

Defined in Amazonka.Data.Text

FromText Natural Source # 
Instance details

Defined in Amazonka.Data.Text

FromText Bool Source # 
Instance details

Defined in Amazonka.Data.Text

FromText Char Source # 
Instance details

Defined in Amazonka.Data.Text

FromText Double Source # 
Instance details

Defined in Amazonka.Data.Text

FromText Int Source # 
Instance details

Defined in Amazonka.Data.Text

FromText a => FromText (Sensitive a) Source # 
Instance details

Defined in Amazonka.Data.Sensitive

FromText (Time fmt) Source # 
Instance details

Defined in Amazonka.Data.Time

Methods

fromText :: Text -> Either String (Time fmt) Source #

(FoldCase a, FromText a) => FromText (CI a) Source # 
Instance details

Defined in Amazonka.Data.Text

Methods

fromText :: Text -> Either String (CI a) Source #

Serialisation

class ToText a where Source #

Methods

toText :: a -> Text Source #

Instances

Instances details
ToText Base64 Source # 
Instance details

Defined in Amazonka.Data.Base64

Methods

toText :: Base64 -> Text Source #

ToText AWSTime Source # 
Instance details

Defined in Amazonka.Data.Time

Methods

toText :: AWSTime -> Text Source #

ToText BasicTime Source # 
Instance details

Defined in Amazonka.Data.Time

ToText ISO8601 Source # 
Instance details

Defined in Amazonka.Data.Time

Methods

toText :: ISO8601 -> Text Source #

ToText POSIX Source # 
Instance details

Defined in Amazonka.Data.Time

Methods

toText :: POSIX -> Text Source #

ToText RFC822 Source # 
Instance details

Defined in Amazonka.Data.Time

Methods

toText :: RFC822 -> Text Source #

ToText Abbrev Source # 
Instance details

Defined in Amazonka.Types

Methods

toText :: Abbrev -> Text Source #

ToText AccessKey Source # 
Instance details

Defined in Amazonka.Types

ToText ErrorCode Source # 
Instance details

Defined in Amazonka.Types

ToText ErrorMessage Source # 
Instance details

Defined in Amazonka.Types

ToText Region Source # 
Instance details

Defined in Amazonka.Types

Methods

toText :: Region -> Text Source #

ToText RequestId Source # 
Instance details

Defined in Amazonka.Types

ToText Seconds Source # 
Instance details

Defined in Amazonka.Types

Methods

toText :: Seconds -> Text Source #

ToText SecretKey Source # 
Instance details

Defined in Amazonka.Types

ToText SessionToken Source # 
Instance details

Defined in Amazonka.Types

ToText Int64 Source # 
Instance details

Defined in Amazonka.Data.Text

Methods

toText :: Int64 -> Text Source #

ToText ByteString Source # 
Instance details

Defined in Amazonka.Data.Text

ToText StdMethod Source # 
Instance details

Defined in Amazonka.Data.Text

ToText Scientific Source # 
Instance details

Defined in Amazonka.Data.Text

ToText Text Source # 
Instance details

Defined in Amazonka.Data.Text

Methods

toText :: Text -> Text Source #

ToText String Source # 
Instance details

Defined in Amazonka.Data.Text

Methods

toText :: String -> Text Source #

ToText Integer Source # 
Instance details

Defined in Amazonka.Data.Text

Methods

toText :: Integer -> Text Source #

ToText Natural Source # 
Instance details

Defined in Amazonka.Data.Text

Methods

toText :: Natural -> Text Source #

ToText Bool Source # 
Instance details

Defined in Amazonka.Data.Text

Methods

toText :: Bool -> Text Source #

ToText Char Source # 
Instance details

Defined in Amazonka.Data.Text

Methods

toText :: Char -> Text Source #

ToText Double Source # 
Instance details

Defined in Amazonka.Data.Text

Methods

toText :: Double -> Text Source #

ToText Int Source # 
Instance details

Defined in Amazonka.Data.Text

Methods

toText :: Int -> Text Source #

ToText a => ToText (Sensitive a) Source # 
Instance details

Defined in Amazonka.Data.Sensitive

Methods

toText :: Sensitive a -> Text Source #

ToText a => ToText (CI a) Source # 
Instance details

Defined in Amazonka.Data.Text

Methods

toText :: CI a -> Text Source #

ToText (Digest a) Source # 
Instance details

Defined in Amazonka.Data.Text

Methods

toText :: Digest a -> Text Source #

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