purescript-0.6.7: PureScript Programming Language Compiler

Safe HaskellSafe-Inferred
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.