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'

drain

wrap

Transforming ByteStrings

map

intercalate

intersperse

Basic interface

cons

cons'

snoc

append

filter

uncons

nextByte

Direct chunk handling

unconsChunk

nextChunk

consChunk

chunk

foldrChunks

foldlChunks

Substrings

Breaking strings

break

drop

group

span

splitAt

splitWith

take

takeWhile

Breaking into many substrings

split

Special folds

concat

Building ByteStrings

Infinite ByteStrings

repeat

iterate

cycle

Unfolding ByteStrings

unfoldM

unfoldr

Folds, including support for Foldl

foldr

fold

fold'

head

head'

last

last'

length

length'

null

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

distribute