Data.ByteString.Streaming.Char8

The ByteString type

data ByteString m r

Introducing and eliminating ByteStrings

empty

pack

unpack

string

unlines

unwords

singleton

fromChunks

fromLazy

fromStrict

toChunks

toLazy

toLazy_

toStrict

toStrict_

effects

copy

drained

mwrap

Transforming ByteStrings

map

intercalate

intersperse

Basic interface

cons

cons'

snoc

append

filter

head

head_

last

last_

null

nulls

uncons

nextChar

Substrings

Breaking strings

break

drop

dropWhile

group

groupBy

span

splitAt

splitWith

take

takeWhile

Breaking into many substrings

split

lines

words

denull

Special folds

concat

Builders

toStreamingByteString

toStreamingByteStringWith

toBuilder

concatBuilders

Building ByteStrings

Infinite ByteStrings

repeat

iterate

cycle

Unfolding ByteStrings

unfoldr

unfoldM

reread

Folds, including support for Foldl

fold

fold_

length

length_

count

count_

null_

readInt

I/O with ByteStrings

Standard input and output

getContents

stdin

stdout

interact

putStr

putStrLn

Files

readFile

writeFile

appendFile

I/O with Handles

fromHandle

toHandle

hGet

hGetContents

hGetContentsN

hGetN

hGetNonBlocking

hGetNonBlockingN

hPut

Simple chunkwise operations

unconsChunk

nextChunk

chunk

foldrChunks

foldlChunks

chunkFold

chunkFoldM

chunkMap

chunkMapM

chunkMapM_

Etc.

distribute

materialize

dematerialize