ormolu-0.1.3.1: A formatter for Haskell source code
Safe HaskellNone
LanguageHaskell2010

Ormolu.Printer.Meat.Common

Description

Rendering of commonly useful bits.

Synopsis

Documentation

data FamilyStyle Source #

Data and type family style.

Constructors

Associated

Declarations in type classes

Free

Top-level declarations

doesNotNeedExtraParens :: RdrName -> Bool Source #

Whether given name should not have parentheses around it. This is used to detect e.g. tuples for which annotations will indicate parentheses, but the parentheses are already part of the symbol, so no extra layer of parentheses should be added. It also detects the [] literal.

p_infixDefHelper Source #

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_hsDocString Source #

Arguments

:: HaddockStyle

Haddock style

-> Bool

Finish the doc string with a newline

-> LHsDocString

The doc string to render

-> R () 

Print a Haddock.

p_hsDocName :: String -> R () Source #

Print anchor of named doc section.