Safe Haskell | None |
---|---|
Language | GHC2021 |
Ormolu.Printer
Description
Pretty-printer for Haskell AST.
Synopsis
- printSnippets :: Bool -> [SourceSnippet] -> PrinterOptsTotal -> Text
- data PrinterOpts (f :: Type -> Type) = 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
Arguments
:: Bool | Whether to print out debug information during printing |
-> [SourceSnippet] | Result of parsing |
-> PrinterOptsTotal | |
-> Text | Resulting rendition |
Render several source snippets.
data PrinterOpts (f :: Type -> Type) Source #
Options controlling formatting output.
Constructors
PrinterOpts | |
Fields
|