Text.PrettyPrint.HughesPJ

# The document type

data Doc

data TextDetails

# 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

# Utility functions for documents

first

reduceDoc

# Rendering documents

## Default rendering

render

## Rendering with a particular style

data Style

style

renderStyle

data Mode

## General rendering

fullRender