vhdl-0.1.2.1: VHDL AST and pretty printer

Portabilitynon-portable (Template Haskell)
Stabilityexperimental
Maintainerchristiaan.baaij@gmail.com

Language.VHDL.Ppr

Description

ForSyDe pretty-printing class and auxiliar functions.

Synopsis

Documentation

class PprOps ops toPpr | toPpr -> ops whereSource

Pretty printing class with associated printing options

Methods

pprOps :: ops -> toPpr -> DocSource

ppr_list :: Ppr a => (Doc -> Doc -> Doc) -> [a] -> DocSource

pprOps_list :: PprOps ops toPpr => ops -> (Doc -> Doc -> Doc) -> [toPpr] -> DocSource

vNSpaces :: Int -> Doc -> Doc -> DocSource

Join two documents vertically leaving n vertical spaces between them

commaSep :: Ppr a => [a] -> DocSource

apply sep to a list of prettyprintable elements, previously interspersing commas

($++$) :: Doc -> Doc -> DocSource

Only append if both of the documents are non-empty

(<++>) :: Doc -> Doc -> DocSource

Only append if both of the documents are non-empty

parensNonEmpty :: Doc -> DocSource

Enclose in parenthesis only if the document is non-empty

parensIf :: Bool -> Doc -> DocSource

Enclose in parenthesis only if the predicate is True