Data.ByteString.Streaming

The ByteString type

data ByteString m r

Introducing and eliminating ByteStrings

empty

singleton

pack

unpack

fromLazy

toLazy

toLazy_

fromChunks

toChunks

fromStrict

toStrict

toStrict_

effects

copy

drained

mwrap

distribute

Transforming ByteStrings

map

intercalate

intersperse

Basic interface

cons

cons'

snoc

append

filter

uncons

nextByte

denull

Substrings

Breaking strings

break

drop

dropWhile

group

groupBy

span

splitAt

splitWith

take

takeWhile

Breaking into many substrings

split

Special folds

concat

Builders

toStreamingByteStringWith

toStreamingByteString

toBuilder

concatBuilders

Building ByteStrings

Infinite ByteStrings

repeat

iterate

cycle

Unfolding ByteStrings

unfoldM

unfoldr

reread

Folds, including support for Foldl

foldr

fold

fold_

head

head_

last

last_

length

length_

null

nulls

null_

count

count_

I/O with ByteStrings

Standard input and output

getContents

stdin

stdout

interact

Files

readFile

writeFile

appendFile

I/O with Handles

fromHandle

toHandle

hGet

hGetContents

hGetContentsN

hGetN

hGetNonBlocking

hGetNonBlockingN

hPut

Etc.

zipWithStream

Simple chunkwise operations

unconsChunk

nextChunk

chunk

foldrChunks

foldlChunks

chunkFold

chunkFoldM

chunkMap

chunkMapM

chunkMapM_