Data.ByteString.Lazy

# The `ByteString` type

data ByteString

# Introducing and eliminating `ByteString`s

empty

singleton

pack

unpack

fromChunks

toChunks

# Basic interface

cons

cons'

snoc

append

head

uncons

last

tail

init

null

length

# Transforming ByteStrings

map

reverse

intersperse

intercalate

transpose

# Reducing `ByteString`s (folds)

foldl

foldl'

foldl1

foldl1'

foldr

foldr1

## Special folds

concat

concatMap

any

all

maximum

minimum

# Building ByteStrings

## Scans

scanl

## Accumulating maps

mapAccumL

mapAccumR

## Infinite ByteStrings

repeat

replicate

cycle

iterate

## Unfolding ByteStrings

unfoldr

# Substrings

## Breaking strings

take

drop

splitAt

takeWhile

dropWhile

span

break

group

groupBy

inits

tails

## Breaking into many substrings

split

splitWith

# Predicates

isPrefixOf

isSuffixOf

## Search for arbitrary substrings

# Searching ByteStrings

## Searching by equality

elem

notElem

## Searching with a predicate

find

filter

partition

# Indexing ByteStrings

index

elemIndex

elemIndices

findIndex

findIndices

count

# Zipping and unzipping ByteStrings

zip

zipWith

unzip

# Ordered ByteStrings

# Low level conversions

## Copying ByteStrings

copy

# I/O with `ByteString`s

## Standard input and output

getContents

putStr

putStrLn

interact

## Files

readFile

writeFile

appendFile

## I/O with Handles

hGetContents

hGet

hGetNonBlocking

hPut

hPutStr