Data.ByteString.Streaming.Char8

The ByteString type

data ByteString m r

Introducing and eliminating ByteStrings

empty

pack

unpack

string

unlines

unwords

unlinesIndividual

unwordsIndividual

singleton

fromChunks

fromLazy

fromStrict

toChunks

toLazy

toLazy'

toStrict

toStrict'

drain

wrap

Transforming ByteStrings

map

intercalate

intersperse

Basic interface

cons

cons'

snoc

append

filter

head

head'

last

last'

null

null'

uncons

nextChar

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

lines

words

linesIndividual

wordsIndividual

denull

Special folds

concat

Builders

toStreamingByteString

toStreamingByteStringWith

toBuilder

concatBuilders

Building ByteStrings

Infinite ByteStrings

repeat

iterate

cycle

Unfolding ByteStrings

unfoldr

unfoldM

Folds, including support for Foldl

fold

fold'

length

length'

count

count'

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

Etc.

distribute

materialize

dematerialize