Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Pretty-printer for Haskell AST.
Synopsis
- printSnippets :: Bool -> [SourceSnippet] -> PrinterOptsTotal -> Text
- data PrinterOpts f = PrinterOpts {
- poIndentation :: f Int
- poColumnLimit :: f ColumnLimit
- poFunctionArrows :: f FunctionArrowsStyle
- poCommaStyle :: f CommaStyle
- poImportExportStyle :: f ImportExportStyle
- poIndentWheres :: f Bool
- poRecordBraceSpace :: f Bool
- poNewlinesBetweenDecls :: f Int
- poHaddockStyle :: f HaddockPrintStyle
- poHaddockStyleModule :: f HaddockPrintStyleModule
- poLetStyle :: f LetStyle
- poInStyle :: f InStyle
- poSingleConstraintParens :: f SingleConstraintParens
- poSingleDerivingParens :: f SingleDerivingParens
- poUnicode :: f Unicode
- poRespectful :: f Bool
Documentation
:: Bool | Whether to print out debug information during printing |
-> [SourceSnippet] | Result of parsing |
-> PrinterOptsTotal | |
-> Text | Resulting rendition |
Render several source snippets.
data PrinterOpts f Source #
Options controlling formatting output.
PrinterOpts | |
|