language-bash-0.3.1: Parsing and pretty-printing Bash shell scripts

Safe HaskellSafe-Inferred

Language.Bash.Pretty

Description

Pretty-printing of Bash scripts. This tries to stay close to the format used by the Bash builtin declare -f.

Synopsis

Documentation

class Pretty a whereSource

A class of types which may be pretty-printed.

Methods

pretty :: a -> DocSource

Pretty-print to a Doc.

prettyList :: [a] -> DocSource

Pretty-print a list. By default, this separates each element with a space using hsep.

prettyText :: Pretty a => a -> StringSource

Pretty-print to a String.