amazonka-core-1.6.1: 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.ByteString

Contents

Description

 
Synopsis

ByteString

data ByteString #

A space-efficient representation of a Word8 vector, supporting many efficient operations.

A ByteString contains 8-bit bytes, or by using the operations from Data.ByteString.Char8 it can be interpreted as containing 8-bit characters.

Instances
Eq ByteString 
Instance details

Defined in Data.ByteString.Internal

Data ByteString 
Instance details

Defined in Data.ByteString.Internal

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ByteString -> c ByteString #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ByteString #

toConstr :: ByteString -> Constr #

dataTypeOf :: ByteString -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c ByteString) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ByteString) #

gmapT :: (forall b. Data b => b -> b) -> ByteString -> ByteString #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ByteString -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ByteString -> r #

gmapQ :: (forall d. Data d => d -> u) -> ByteString -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> ByteString -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> ByteString -> m ByteString #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ByteString -> m ByteString #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ByteString -> m ByteString #

Ord ByteString 
Instance details

Defined in Data.ByteString.Internal

Read ByteString 
Instance details

Defined in Data.ByteString.Internal

Show ByteString 
Instance details

Defined in Data.ByteString.Internal

IsString ByteString 
Instance details

Defined in Data.ByteString.Internal

Semigroup ByteString 
Instance details

Defined in Data.ByteString.Internal

Monoid ByteString 
Instance details

Defined in Data.ByteString.Internal

Hashable ByteString 
Instance details

Defined in Data.Hashable.Class

Chunk ByteString 
Instance details

Defined in Data.Attoparsec.Internal.Types

Associated Types

type ChunkElem ByteString :: Type #

FoldCase ByteString

Note that foldCase on ByteStrings is only guaranteed to be correct for ISO-8859-1 encoded strings!

Instance details

Defined in Data.CaseInsensitive.Internal

NFData ByteString 
Instance details

Defined in Data.ByteString.Internal

Methods

rnf :: ByteString -> () #

ByteArray ByteString 
Instance details

Defined in Data.ByteArray.Types

Methods

allocRet :: Int -> (Ptr p -> IO a) -> IO (a, ByteString) #

ByteArrayAccess ByteString 
Instance details

Defined in Data.ByteArray.Types

Methods

length :: ByteString -> Int #

withByteArray :: ByteString -> (Ptr p -> IO a) -> IO a #

copyByteArrayToPtr :: ByteString -> Ptr p -> IO () #

QueryKeyLike ByteString 
Instance details

Defined in Network.HTTP.Types.QueryLike

QueryValueLike ByteString 
Instance details

Defined in Network.HTTP.Types.QueryLike

Ixed ByteString 
Instance details

Defined in Control.Lens.At

Reversing ByteString 
Instance details

Defined in Control.Lens.Internal.Iso

SemiSequence ByteString 
Instance details

Defined in Data.Sequences

Associated Types

type Index ByteString :: Type #

IsSequence ByteString 
Instance details

Defined in Data.Sequences

Methods

fromList :: [Element ByteString] -> ByteString #

lengthIndex :: ByteString -> Index ByteString #

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

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

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

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

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

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

take :: Index ByteString -> ByteString -> ByteString #

unsafeTake :: Index ByteString -> ByteString -> ByteString #

drop :: Index ByteString -> ByteString -> ByteString #

unsafeDrop :: Index ByteString -> ByteString -> ByteString #

dropEnd :: Index ByteString -> ByteString -> ByteString #

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

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

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

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

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

replicate :: Index ByteString -> Element ByteString -> ByteString #

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

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

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

subsequences :: ByteString -> [ByteString] #

permutations :: ByteString -> [ByteString] #

tailEx :: ByteString -> ByteString #

tailMay :: ByteString -> Maybe ByteString #

initEx :: ByteString -> ByteString #

initMay :: ByteString -> Maybe ByteString #

unsafeTail :: ByteString -> ByteString #

unsafeInit :: ByteString -> ByteString #

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

indexEx :: ByteString -> Index ByteString -> Element ByteString #

unsafeIndex :: ByteString -> Index ByteString -> Element ByteString #

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

MonoFunctor ByteString 
Instance details

Defined in Data.MonoTraversable

MonoFoldable ByteString 
Instance details

Defined in Data.MonoTraversable

Methods

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

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

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

otoList :: ByteString -> [Element ByteString] #

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

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

onull :: ByteString -> Bool #

olength :: ByteString -> Int #

olength64 :: ByteString -> Int64 #

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

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

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

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

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

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

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

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

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

headEx :: ByteString -> Element ByteString #

lastEx :: ByteString -> Element ByteString #

unsafeHead :: ByteString -> Element ByteString #

unsafeLast :: ByteString -> Element ByteString #

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

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

oelem :: Element ByteString -> ByteString -> Bool #

onotElem :: Element ByteString -> ByteString -> Bool #

MonoTraversable ByteString 
Instance details

Defined in Data.MonoTraversable

MonoPointed ByteString 
Instance details

Defined in Data.MonoTraversable

GrowingAppend ByteString 
Instance details

Defined in Data.MonoTraversable

ToText ByteString Source # 
Instance details

Defined in Network.AWS.Data.Text

FromText ByteString Source # 
Instance details

Defined in Network.AWS.Data.Text

ToByteString ByteString Source # 
Instance details

Defined in Network.AWS.Data.ByteString

ToQuery ByteString Source # 
Instance details

Defined in Network.AWS.Data.Query

ToPath ByteString Source # 
Instance details

Defined in Network.AWS.Data.Path

ToHeader ByteString Source # 
Instance details

Defined in Network.AWS.Data.Headers

ToLog ByteString Source # 
Instance details

Defined in Network.AWS.Data.Log

ToXML ByteString Source # 
Instance details

Defined in Network.AWS.Data.XML

Methods

toXML :: ByteString -> XML Source #

FromXML ByteString Source # 
Instance details

Defined in Network.AWS.Data.XML

ToBody ByteString Source # 
Instance details

Defined in Network.AWS.Data.Body

ToHashedBody ByteString Source # 
Instance details

Defined in Network.AWS.Data.Body

Strict ByteString ByteString 
Instance details

Defined in Control.Lens.Iso

LazySequence ByteString ByteString 
Instance details

Defined in Data.Sequences

Utf8 Text ByteString 
Instance details

Defined in Data.Sequences

Cons ByteString ByteString Word8 Word8 
Instance details

Defined in Control.Lens.Cons

Snoc ByteString ByteString Word8 Word8 
Instance details

Defined in Control.Lens.Cons

ToLog [Header] Source # 
Instance details

Defined in Network.AWS.Data.Log

Methods

build :: [Header] -> Builder Source #

type State ByteString 
Instance details

Defined in Data.Attoparsec.Internal.Types

type State ByteString = Buffer
type ChunkElem ByteString 
Instance details

Defined in Data.Attoparsec.Internal.Types

type Index ByteString 
Instance details

Defined in Control.Lens.At

type IxValue ByteString 
Instance details

Defined in Control.Lens.At

type Index ByteString 
Instance details

Defined in Data.Sequences

type Element ByteString 
Instance details

Defined in Data.MonoTraversable

class ToByteString a where Source #

Minimal complete definition

Nothing

Methods

toBS :: a -> ByteString Source #

toBS :: ToText a => a -> ByteString Source #

Instances
ToByteString Double Source # 
Instance details

Defined in Network.AWS.Data.ByteString

ToByteString Int Source # 
Instance details

Defined in Network.AWS.Data.ByteString

Methods

toBS :: Int -> ByteString Source #

ToByteString Integer Source # 
Instance details

Defined in Network.AWS.Data.ByteString

ToByteString Natural Source # 
Instance details

Defined in Network.AWS.Data.ByteString

ToByteString ByteString Source # 
Instance details

Defined in Network.AWS.Data.ByteString

ToByteString Builder Source # 
Instance details

Defined in Network.AWS.Data.ByteString

ToByteString Text Source # 
Instance details

Defined in Network.AWS.Data.ByteString

Methods

toBS :: Text -> ByteString Source #

ToByteString UTCTime Source # 
Instance details

Defined in Network.AWS.Data.ByteString

ToByteString String Source # 
Instance details

Defined in Network.AWS.Data.ByteString

ToByteString StdMethod Source # 
Instance details

Defined in Network.AWS.Data.ByteString

ToByteString LazyByteString Source # 
Instance details

Defined in Network.AWS.Data.ByteString

ToByteString QueryString Source # 
Instance details

Defined in Network.AWS.Data.Query

ToByteString EscapedPath Source # 
Instance details

Defined in Network.AWS.Data.Path

ToByteString AWSTime Source # 
Instance details

Defined in Network.AWS.Data.Time

ToByteString BasicTime Source # 
Instance details

Defined in Network.AWS.Data.Time

ToByteString ISO8601 Source # 
Instance details

Defined in Network.AWS.Data.Time

ToByteString RFC822 Source # 
Instance details

Defined in Network.AWS.Data.Time

ToByteString Nat Source # 
Instance details

Defined in Network.AWS.Data.Numeric

Methods

toBS :: Nat -> ByteString Source #

ToByteString Base64 Source # 
Instance details

Defined in Network.AWS.Data.Base64

ToByteString Seconds Source # 
Instance details

Defined in Network.AWS.Types

ToByteString Region Source # 
Instance details

Defined in Network.AWS.Types

ToByteString SessionToken Source # 
Instance details

Defined in Network.AWS.Types

ToByteString SecretKey Source # 
Instance details

Defined in Network.AWS.Types

ToByteString AccessKey Source # 
Instance details

Defined in Network.AWS.Types

ToByteString LogLevel Source # 
Instance details

Defined in Network.AWS.Types

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

Defined in Network.AWS.Data.ByteString

Methods

toBS :: CI a -> ByteString Source #

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

Defined in Network.AWS.Data.Sensitive