purescript-0.8.0.0: PureScript Programming Language Compiler

Safe HaskellNone
LanguageHaskell98

Language.PureScript.Pretty.Common

Description

Common pretty-printing utility functions

Synopsis

Documentation

parens :: String -> String Source

Wrap a string in parentheses

blockIndent :: Int Source

Number of characters per identation level

withIndent :: StateT PrinterState Maybe String -> StateT PrinterState Maybe String Source

Pretty print with a new indentation level

currentIndent :: StateT PrinterState Maybe String Source

Get the current indentation level

prettyPrintObjectKey :: String -> String Source

Prints an object key, escaping reserved names.

before :: Box -> Box -> Box Source

Place a box before another, vertically when the first box takes up multiple lines.