ermine-0.6: Ermine

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

Ermine.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.

chooseNames :: (String -> Bool) -> [Hint] -> [String] -> ([String], [String]) Source