| 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
- poImportGrouping :: f ImportGrouping
- 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
- poSortConstraints :: f Bool
- poSortDerivedClasses :: f Bool
- poSortDerivingClauses :: f Bool
- poTrailingSectionOperators :: f Bool
- 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) #
Options controlling formatting output.
Constructors
| PrinterOpts | |
Fields
| |