Text.PrettyPrint

# The document type

data Doc

# Constructing documents

## Converting values into documents

char

text

ptext

sizedText

zeroWidthText

int

integer

float

double

rational

## Simple derived documents

semi

comma

colon

space

equals

lparen

rparen

lbrack

rbrack

lbrace

rbrace

## Wrapping documents in delimiters

parens

brackets

braces

quotes

doubleQuotes

## Combining documents

empty

(<>)

(<+>)

hcat

hsep

($$)

($+$)

vcat

sep

cat

fsep

fcat

nest

hang

punctuate

# Predicates on documents

isEmpty

# Rendering documents

## Default rendering

render

## Rendering with a particular style

data Style

style

renderStyle

## General rendering

fullRender

data Mode

data TextDetails