Text.PrettyPrint.Mainland

The document type

data Doc

Constructing documents

Converting values into documents

text

bool

char

string

int

integer

float

double

rational

strictText

lazyText

Simple documents documents

star

colon

comma

dot

equals

semi

space

spaces

backquote

squote

dquote

langle

rangle

lbrace

rbrace

lbracket

rbracket

lparen

rparen

Basic document combinators

empty

srcloc

line

softline

softbreak

(<>)

(<|>)

(<+>)

(</>)

(<+/>)

(<//>)

group

flatten

Wrapping documents in delimiters

enclose

squotes

dquotes

angles

backquotes

braces

brackets

parens

parensIf

Combining lists of documents

folddoc

spread

stack

cat

sep

punctuate

commasep

semisep

enclosesep

tuple

list

Alignment and indentation

align

hang

indent

nest

column

nesting

width

fill

fillbreak

Utilities

faildoc

errordoc

The rendered document type

data RDoc

Document rendering

render

renderCompact

displayS

prettyS

pretty

prettyCompactS

prettyCompact

displayPragmaS

prettyPragmaS

prettyPragma

displayLazyText

prettyLazyText

displayPragmaLazyText

prettyPragmaLazyText

Document output

putDoc

putDocLn

hPutDoc

hPutDocLn