Module

Data.Text.Doc

Package
purescript-text-formatting
Repository
shamansir/purescript-text-formatting

#(:<>) Source

Operator alias for Data.Text.Doc.Nest (right-associative / precedence 6)

#Break Source

data Break

Constructors

#Indent Source

data Indent

Constructors

  • Empty
  • Spaces Int
  • Custom String
  • Tab

    VariableN (Int -> Int) -- take current level of indent and return the required number of indents VariableS (Int -> String) -- take current level of indent and return the required string for indentation

#renderIndent Source

#renderBreak Source

#Options Source

type Options = { break :: Break, indent :: Indent }

#Options' Source

type Options' = { break :: String, indent :: String }

#render' Source

#break Source

#nest Source

nest :: Int -> Doc -> Doc

#nest' Source

nest' :: Int -> Array Doc -> Doc

#concat Source

concat :: Doc -> Doc -> Doc

#indent Source

#space Source

#mark Source

mark :: String -> Doc -> Doc

#bracket Source

#bracket' Source

bracket' :: Doc -> Doc -> Doc -> Doc

#wbracket Source

#wrap Source

wrap :: String -> Doc -> Doc

#bracketbr Source

#wrapbr Source

wrapbr :: String -> Doc -> Doc

#sp Source

sp :: Doc -> Doc -> Doc

#br Source

br :: Doc -> Doc -> Doc

#brbr Source

brbr :: Doc -> Doc -> Doc

#repeat Source

repeat :: Int -> Doc -> Doc

#indentOf Source

#indentBy Source

indentBy :: Int -> Doc -> Doc

#(<+>) Source

Operator alias for Data.Text.Doc.sp (right-associative / precedence 6)

#(</>) Source

Operator alias for Data.Text.Doc.br (right-associative / precedence 6)

#(<//>) Source

Operator alias for Data.Text.Doc.brbr (right-associative / precedence 6)

#folddoc Source

folddoc :: (Doc -> Doc -> Doc) -> Array Doc -> Doc

#spacify Source

#joinWith Source