ormolu-0.0.3.0: A formatter for Haskell source code

Safe HaskellNone
LanguageHaskell2010

Ormolu.Printer.Comments

Description

Helpers for formatting of comments. This is low-level code, use Ormolu.Printer.Combinators unless you know what you are doing.

Synopsis

Documentation

spitPrecedingComments Source #

Arguments

:: Data a 
=> RealLocated a

AST element to attach comments to

-> R () 

Output all preceding comments for an element at given location.

spitFollowingComments Source #

Arguments

:: 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.