Safe Haskell | None |
---|---|
Language | Haskell2010 |
All types.
- newtype Printer a = Printer {
- runPrinter :: StateT PrintState (MaybeT Identity) a
- data PrintState = PrintState {
- psIndentLevel :: !Int64
- psOutput :: !Builder
- psNewline :: !Bool
- psColumn :: !Int64
- psLine :: !Int64
- psConfig :: !Config
- psInsideCase :: !Bool
- psFitOnOneLine :: !Bool
- psEolComment :: !Bool
- data Config = Config {}
- readExtension :: Monad m => String -> m Extension
- defaultConfig :: Config
- data NodeInfo = NodeInfo {}
- data NodeComment
- data SomeComment
Documentation
A pretty printing monad.
Printer | |
|
data PrintState Source #
The state of the pretty printer.
PrintState | |
|
Configurations shared among the different styles. Styles may pay attention to or completely disregard this configuration.
Config | |
|
defaultConfig :: Config Source #
Default style configuration.
Information for each node in the AST.
NodeInfo | |
|
data NodeComment Source #
Comment associated with a node.
SrcSpan
is the original source span of the comment.
data SomeComment Source #
Some comment to print.