Portability | non-portable (Template Haskell) |
---|---|
Stability | experimental |
Maintainer | christiaan.baaij@gmail.com |
ForSyDe pretty-printing class and auxiliar functions.
- class Ppr a where
- class PprOps ops toPpr | toPpr -> ops where
- dot :: Doc
- vSpace :: Doc
- multiVSpace :: Int -> Doc
- ppr_list :: Ppr a => (Doc -> Doc -> Doc) -> [a] -> Doc
- pprOps_list :: PprOps ops toPpr => ops -> (Doc -> Doc -> Doc) -> [toPpr] -> Doc
- vNSpaces :: Int -> Doc -> Doc -> Doc
- vSemi :: Doc -> Doc -> Doc
- vComma :: Doc -> Doc -> Doc
- hComma :: Doc -> Doc -> Doc
- commaSep :: Ppr a => [a] -> Doc
- ($++$) :: Doc -> Doc -> Doc
- (<++>) :: Doc -> Doc -> Doc
- parensNonEmpty :: Doc -> Doc
- parensIf :: Bool -> Doc -> Doc
Documentation
Pretty printing class
class PprOps ops toPpr | toPpr -> ops whereSource
Pretty printing class with associated printing options
multiVSpace :: Int -> 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
parensNonEmpty :: Doc -> DocSource
Enclose in parenthesis only if the document is non-empty