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

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

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

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

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

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

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

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

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

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

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

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

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

Lifted packCString

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

Lifted packCStringLen

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

Unlifted useAsCString

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

Unlifted useAsCStringLen

getLine :: MonadIO m => m ByteString Source #

Lifted getLine

getContents :: MonadIO m => m ByteString Source #

Lifted getContents

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

Lifted putStr

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

Lifted interact

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

Lifted readFile

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

Lifted writeFile

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

Lifted appendFile

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

Lifted hGetLine

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

Lifted hGetContents

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

Lifted hGet

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

Lifted hGetSome

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

Lifted hGetNonBlocking

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

Lifted hPut

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

Lifted hPutNonBlocking

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

Lifted hPutStr