| Safe Haskell | Safe |
|---|---|
| Language | Haskell98 |
Language.Bash.Pretty
Description
Pretty-printing of Bash scripts. This tries to stay close to the format
used by the Bash builtin declare -f.
- class Pretty a where
- prettyText :: Pretty a => a -> String
Documentation
A class of types which may be pretty-printed.
Minimal complete definition
Methods
Pretty-print to a Doc.
prettyList :: [a] -> Doc Source #
Pretty-print a list. By default, this separates each element with
a space using hsep.
Instances
| Pretty Char Source # | |
| Pretty Doc Source # | |
| Pretty ProcessSubstOp Source # | |
| Pretty Direction Source # | |
| Pretty LetterCaseOp Source # | |
| Pretty AltOp Source # | |
| Pretty ParamSubst Source # | |
| Pretty Parameter Source # | |
| Pretty Span Source # | |
| Pretty TildePrefix Source # | |
| Pretty BinaryOp Source # | |
| Pretty UnaryOp Source # | |
| Pretty RValue Source # | |
| Pretty AssignOp Source # | |
| Pretty Assign Source # | |
| Pretty Pipeline Source # | |
| Pretty AndOr Source # | |
| Pretty ListTerm Source # | |
| Pretty Statement Source # | |
| Pretty List Source # | |
| Pretty HeredocOp Source # | |
| Pretty RedirOp Source # | |
| Pretty IODesc Source # | |
| Pretty Redir Source # | |
| Pretty CaseTerm Source # | |
| Pretty CaseClause Source # | |
| Pretty WordList Source # | |
| Pretty ShellCommand Source # | |
| Pretty Command Source # | |
| Pretty a => Pretty [a] Source # | |
| Pretty a => Pretty (Maybe a) Source # | |
| Pretty a => Pretty (CondExpr a) Source # | |
| (Pretty a, Pretty b) => Pretty (Either a b) Source # | |