Safe Haskell | None |
---|---|
Language | Haskell98 |
HIndent.Types
Description
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
- psHardLimit :: !Bool
- psEolComment :: !Bool
- data Config = Config {}
- defaultConfig :: Config
- data NodeInfo = NodeInfo {
- nodeInfoSpan :: !SrcSpanInfo
- nodeInfoComments :: ![NodeComment]
- data NodeComment
- = CommentSameLine SrcSpan SomeComment
- | CommentAfterLine SrcSpan SomeComment
- | CommentBeforeLine SrcSpan SomeComment
- data SomeComment
Documentation
A pretty printing monad.
Constructors
Printer | |
Fields
|
Instances
data PrintState #
The state of the pretty printer.
Constructors
PrintState | |
Fields
|
Instances
Configurations shared among the different styles. Styles may pay attention to or completely disregard this configuration.
Constructors
Config | |
Fields
|
defaultConfig :: Config #
Default style configuration.
Information for each node in the AST.
Constructors
NodeInfo | |
Fields
|
data NodeComment #
Comment associated with a node.
SrcSpan
is the original source span of the comment.
Constructors
CommentSameLine SrcSpan SomeComment | |
CommentAfterLine SrcSpan SomeComment | |
CommentBeforeLine SrcSpan SomeComment |
Instances