ormolu-0.7.7.0: A formatter for Haskell source code
Safe HaskellNone
LanguageGHC2021

Ormolu.Printer.Meat.Common

Description

Rendering of commonly useful bits.

Synopsis

Documentation

data FamilyStyle #

Data and type family style.

Constructors

Associated

Declarations in type classes

Free

Top-level declarations

p_hsmodName :: ModuleName -> R () #

Outputs the name of the module-like entity, preceeded by the correct prefix ("module" or "signature").

p_infixDefHelper #

Arguments

:: Bool

Whether to format in infix style

-> Bool

Whether to bump indentation for arguments

-> R ()

How to print the operator/name

-> [R ()]

How to print the arguments

-> R () 

A helper for formatting infix constructions in lhs of definitions.

p_hsDoc #

Arguments

:: HaddockStyle

Haddock style

-> Choice "endNewline"

Finish the doc string with a newline

-> LHsDoc GhcPs

The LHsDoc to render

-> R () 

Print a Haddock.

p_hsDocName :: String -> R () #

Print anchor of named doc section.