plutus-core-1.36.0.0: Language library for Plutus Core
Safe HaskellSafe-Inferred
LanguageHaskell2010

Prettyprinter.Custom

Synopsis

Documentation

brackets'Doc a → Doc a Source #

This prints a document enclosed by brackets, possibly indenting the output on a new line if it does not fit.

braces'Doc a → Doc a Source #

This prints a document enclosed by braces, possibly indenting the output on a new line if it does not fit.

parens'Doc a → Doc a Source #

This prints a document enclosed by parentheses, aligning the opening and closing parentheses.

sexpDoc a → [Doc a] → Doc a Source #

Print a "sexp", i.e. something like "(keyword arg1 ... argN)".

(<?>)Doc ann → Doc ann → Doc ann infixr 6 Source #

Separate two documents p and q and increase indentation if q has to be put on a new line. Useful to e.g. pretty-print function application like `fun ? sep arguments`.

vcatHard ∷ [Doc ann] → Doc ann Source #

Lay out a sequence of documents vertically with forced lines between documents. Useful for prettyprinting layout-sensitive things like let-bindings.