Data.Text.Prettyprint.Doc

Documents

data Doc ann

Basic functionality

class Pretty a

emptyDoc

nest

line

line'

softline

softline'

hardline

group

flatAlt

Alignment functions

align

hang

indent

encloseSep

list

tupled

Binary functions

(<>)

(<+>)

List functions

concatWith

sep family

hsep

vsep

fillSep

sep

cat family

hcat

vcat

fillCat

cat

Others

punctuate

Reactive/conditional layouts

column

nesting

width

pageWidth

Filler functions

fill

fillBreak

General convenience

plural

enclose

surround

Bracketing functions

squotes

dquotes

parens

angles

brackets

braces

Named characters

lparen

rparen

langle

rangle

lbrace

rbrace

lbracket

rbracket

squote

dquote

semi

colon

comma

space

dot

slash

backslash

equals

pipe

Annotations

annotate

unAnnotate

reAnnotate

alterAnnotations

unAnnotateS

reAnnotateS

alterAnnotationsS

Optimization

fuse

data FusionDepth

Layout

data SimpleDocStream ann

data PageWidth

data LayoutOptions

defaultLayoutOptions

layoutPretty

layoutCompact

layoutSmart

Migration guide