Data.ByteString.Lazy.Char8

# The `ByteString` type

data ByteString

# Introducing and eliminating `ByteString`s

empty

singleton

pack

unpack

fromChunks

toChunks

fromStrict

toStrict

# Basic interface

cons

cons'

snoc

append

head

uncons

last

tail

unsnoc

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

stripPrefix

stripSuffix

## Breaking into many substrings

split

splitWith

## Breaking into lines and words

lines

words

unlines

unwords

# Predicates

isPrefixOf

isSuffixOf

# Searching ByteStrings

## Searching by equality

elem

notElem

## Searching with a predicate

find

filter

# Indexing ByteStrings

index

elemIndex

elemIndices

findIndex

findIndices

count

# Zipping and unzipping ByteStrings

zip

zipWith

# Ordered ByteStrings

# Low level conversions

## Copying ByteStrings

copy

# Reading from ByteStrings

readInt

readInteger

# 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

hPutNonBlocking

hPutStr

hPutStrLn