Safe Haskell | None |
---|---|
Language | Haskell2010 |
Helpers for formatting of comments. This is low-level code, use Ormolu.Printer.Combinators unless you know what you are doing.
Synopsis
- spitPrecedingComments :: Data a => RealLocated a -> R ()
- spitFollowingComments :: Data a => RealLocated a -> R ()
- spitRemainingComments :: R ()
- spitStackHeader :: R ()
Documentation
spitPrecedingComments Source #
:: Data a | |
=> RealLocated a | AST element to attach comments to |
-> R () |
Output all preceding comments for an element at given location.
spitFollowingComments Source #
:: Data a | |
=> RealLocated a | AST element of attach comments to |
-> R () |
Output all comments following an element at given location.
spitRemainingComments :: R () Source #
Output all remaining comments in the comment stream.
spitStackHeader :: R () Source #
If there is a stack header in the comment stream, print it.