rio-0.1.22.0: A standard library for Haskell
Safe HaskellSafe-Inferred
LanguageHaskell2010

RIO.ByteString

Description

Strict ByteString. Import as:

import qualified RIO.ByteString as B

This module does not export any partial functions. For those, see RIO.ByteString.Partial

Synopsis

Documentation

data ByteString #

Instances

Instances details
Data ByteString 
Instance details

Defined in Data.ByteString.Internal.Type

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 :: forall r r'. (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 #

IsString ByteString 
Instance details

Defined in Data.ByteString.Internal.Type

Monoid ByteString 
Instance details

Defined in Data.ByteString.Internal.Type

Semigroup ByteString 
Instance details

Defined in Data.ByteString.Internal.Type

IsList ByteString 
Instance details

Defined in Data.ByteString.Internal.Type

Associated Types

type Item ByteString

Read ByteString 
Instance details

Defined in Data.ByteString.Internal.Type

Methods

readsPrec :: Int -> ReadS ByteString

readList :: ReadS [ByteString]

readPrec :: ReadPrec ByteString

readListPrec :: ReadPrec [ByteString]

Show ByteString 
Instance details

Defined in Data.ByteString.Internal.Type

Methods

showsPrec :: Int -> ByteString -> ShowS

show :: ByteString -> String #

showList :: [ByteString] -> ShowS

NFData ByteString 
Instance details

Defined in Data.ByteString.Internal.Type

Methods

rnf :: ByteString -> () #

Eq ByteString 
Instance details

Defined in Data.ByteString.Internal.Type

Ord ByteString 
Instance details

Defined in Data.ByteString.Internal.Type

Hashable ByteString 
Instance details

Defined in Data.Hashable.Class

Lift ByteString 
Instance details

Defined in Data.ByteString.Internal.Type

Methods

lift :: Quote m => ByteString -> m Exp

liftTyped :: forall (m :: Type -> Type). Quote m => ByteString -> Code m ByteString

type Item ByteString 
Instance details

Defined in Data.ByteString.Internal.Type

type Item ByteString = Word8

foldr :: (Word8 -> a -> a) -> a -> ByteString -> a #

mapAccumL :: (acc -> Word8 -> (acc, Word8)) -> acc -> ByteString -> (acc, ByteString) #

foldl' :: (a -> Word8 -> a) -> a -> ByteString -> a #

foldr' :: (Word8 -> a -> a) -> a -> ByteString -> a #

foldl :: (a -> Word8 -> a) -> a -> ByteString -> a #

all :: (Word8 -> Bool) -> ByteString -> Bool #

zipWith :: (Word8 -> Word8 -> a) -> ByteString -> ByteString -> [a] #

unfoldr :: (a -> Maybe (Word8, a)) -> a -> ByteString #

unfoldrN :: Int -> (a -> Maybe (Word8, a)) -> a -> (ByteString, Maybe a) #

any :: (Word8 -> Bool) -> ByteString -> Bool #

mapAccumR :: (acc -> Word8 -> (acc, Word8)) -> acc -> ByteString -> (acc, ByteString) #

writeFile :: MonadIO m => FilePath -> ByteString -> m () #

Lifted writeFile

packCString :: MonadIO m => CString -> m ByteString #

Lifted packCString

packCStringLen :: MonadIO m => CStringLen -> m ByteString #

Lifted packCStringLen

useAsCString :: MonadUnliftIO m => ByteString -> (CString -> m a) -> m a #

Unlifted useAsCString

useAsCStringLen :: MonadUnliftIO m => ByteString -> (CStringLen -> m a) -> m a #

Unlifted useAsCStringLen

getLine :: MonadIO m => m ByteString #

Lifted getLine

getContents :: MonadIO m => m ByteString #

Lifted getContents

putStr :: MonadIO m => ByteString -> m () #

Lifted putStr

interact :: MonadIO m => (ByteString -> ByteString) -> m () #

Lifted interact

readFile :: MonadIO m => FilePath -> m ByteString #

Lifted readFile

appendFile :: MonadIO m => FilePath -> ByteString -> m () #

Lifted appendFile

hGetLine :: MonadIO m => Handle -> m ByteString #

Lifted hGetLine

hGetContents :: MonadIO m => Handle -> m ByteString #

Lifted hGetContents

hGet :: MonadIO m => Handle -> Int -> m ByteString #

Lifted hGet

hGetSome :: MonadIO m => Handle -> Int -> m ByteString #

Lifted hGetSome

hGetNonBlocking :: MonadIO m => Handle -> Int -> m ByteString #

Lifted hGetNonBlocking

hPut :: MonadIO m => Handle -> ByteString -> m () #

Lifted hPut

hPutNonBlocking :: MonadIO m => Handle -> ByteString -> m ByteString #

Lifted hPutNonBlocking

hPutStr :: MonadIO m => Handle -> ByteString -> m () #

Lifted hPutStr