ormolu-0.7.0.0: A formatter for Haskell source code
Safe HaskellSafe-Inferred
LanguageGHC2021

Ormolu.Printer.Meat.Declaration.Value

Synopsis

Documentation

p_pat :: Pat GhcPs -> R () Source #

p_stringLit :: String -> R () Source #

Print the source text of a string literal while indenting gaps correctly.

data IsApplicand Source #

An applicand is the left-hand side in a function application, i.e. f in f a. We need to track this in order to add extra identation in cases like

foo =
  do
      succ
    1

Constructors

Applicand 
NotApplicand 

p_hsCmdTop :: BracketStyle -> HsCmdTop GhcPs -> R () Source #

Print a top-level command.

exprPlacement :: HsExpr GhcPs -> Placement Source #

Check if given expression has a hanging form.

cmdTopPlacement :: HsCmdTop GhcPs -> Placement Source #

Determine placement of a top level command.