Safe Haskell | Safe |
---|---|
Language | Haskell98 |
Pretty-printing of Bash scripts. This tries to stay close to the format
used by the Bash builtin declare -f
.
Synopsis
- class Pretty a where
- prettyText :: Pretty a => a -> String
Documentation
A class of types which may be pretty-printed.
Pretty-print to a Doc
.
prettyList :: [a] -> Doc Source #
Pretty-print a list. By default, this separates each element with
a space using hsep
.