purescript-0.4.18.2: PureScript Programming Language Compiler

Safe HaskellSafe-Inferred

Language.PureScript.Pretty.Common

Description

Common pretty-printing utility functions

Synopsis

Documentation

parens :: String -> StringSource

Wrap a string in parentheses

blockIndent :: IntSource

Number of characters per identation level

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

Pretty print with a new indentation level

currentIndent :: StateT PrinterState Maybe StringSource

Get the current indentation level