pire-0.2.5

Copyright(c) Andreas Reuleaux 2015 - 2018
LicenseBSD2
MaintainerAndreas Reuleaux <rx@a-rx.info>
Stabilityexperimental
Portabilitynon-portable
Safe HaskellSafe
LanguageHaskell2010

PrettyBasic

Description

basic utilities for pretty printing, copied from Ermine, and adapted for Prettyprinter

Synopsis

Documentation

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

Pretty print parentheses

bracketsIf :: Bool -> Doc ann -> Doc ann Source #

similar: Pretty print brackets

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

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

block :: [Doc ann] -> Doc ann Source #

Format a layout block in explicit style.

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