Text.Format

Basic Definitions

Types

data Doc

data Graphics

Type Classes

class Format item

class FormatM m item

Creating Docs

Constructors

Basic

empty

line

linebreak

softline

softbreak

From datatypes

char

string

bytestring

lazyBytestring

Literals

lparen

rparen

lbrack

rbrack

lbrace

rbrace

langle

rangle

squote

dquote

backquote

comma

semi

colon

dot

backslash

equals

space

Derived

nest

indent

align

squoted

dquoted

parens

brackets

braces

angles

list

Graphics Mode

graphics

dullWhite

dullRed

dullYellow

dullGreen

dullBlue

dullCyan

dullMagenta

dullBlack

vividWhite

vividRed

vividYellow

vividGreen

vividBlue

vividCyan

vividMagenta

vividBlack

dullWhiteBackground

dullRedBackground

dullYellowBackground

dullGreenBackground

dullBlueBackground

dullCyanBackground

dullMagentaBackground

dullBlackBackground

vividWhiteBackground

vividRedBackground

vividYellowBackground

vividGreenBackground

vividBlueBackground

vividCyanBackground

vividMagentaBackground

vividBlackBackground

Combining Docs

Basic

beside

concat

choose

Derived

(<>)

(<+>)

(<$>)

(<$$>)

(</>)

(<//>)

hsep

hcat

vsep

vcat

sep

cat

fillSep

fillCat

enclose

punctuate

encloseSep

Transforming Docs

flatten

group

Rendering Docs

renderOneLine

buildOneLine

putOneLine

renderFast

buildFast

putFast

renderOptimal

buildOptimal

putOptimal