coda-0.0.1: The coda compiler

Copyright(c) Edward Kmett 2017 (c) Edward Kmett and Dan Doel 2012-2014
LicenseBSD2
MaintainerEdward Kmett <ekmett@gmail.com>
Stabilityexperimental
Portabilitynon-portable
Safe HaskellSafe
LanguageHaskell2010

Coda.Console.Pretty

Description

General-purpose utilities for pretty printing.

Synopsis

Documentation

names :: [String] Source #

This is an infinitely large free variable supply you can trim your used variables out of.

parensIf :: Bool -> Doc -> Doc Source #

Pretty print parentheses

hyph :: String -> Doc Source #

Hyphenate a word using standard TeX-style english_US hyphenation.

prePunctuate :: Doc -> [Doc] -> [Doc] Source #

prePunctuate' :: Doc -> Doc -> [Doc] -> [Doc] Source #

block :: [Doc] -> Doc Source #

Format a layout block in explicit style.

say :: MonadIO m => Doc -> m () Source #

Pretty print to stdout

sayLn :: MonadIO m => Doc -> m () Source #

Pretty print to stdout with a linebreak after.