Text.PrettyPrint.Annotated.HughesPJ

# The document type

data Doc a

data TextDetails

data AnnotDetails a

# 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

maybeParens

maybeBrackets

maybeBraces

maybeQuotes

maybeDoubleQuotes

## Combining documents

empty

(<>)

(<+>)

hcat

hsep

($$)

($+$)

vcat

sep

cat

fsep

fcat

nest

hang

punctuate

## Annotating documents

annotate

# Predicates on documents

isEmpty

# Utility functions for documents

first

reduceDoc

# Rendering documents

## Default rendering

render

## Annotation rendering

renderSpans

data Span a

renderDecorated

renderDecoratedM

## Rendering with a particular style

data Style

style

renderStyle

data Mode

## General rendering

fullRender

fullRenderAnn