Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Synopsis
- p_valDecl :: HsBind GhcPs -> R ()
- p_pat :: Pat GhcPs -> R ()
- p_hsExpr :: HsExpr GhcPs -> R ()
- p_hsUntypedSplice :: SpliceDecoration -> HsUntypedSplice GhcPs -> R ()
- p_stringLit :: String -> R ()
- data IsApplicand
- p_hsExpr' :: IsApplicand -> BracketStyle -> HsExpr GhcPs -> R ()
- p_hsCmdTop :: BracketStyle -> HsCmdTop GhcPs -> R ()
- exprPlacement :: HsExpr GhcPs -> Placement
- cmdTopPlacement :: HsCmdTop GhcPs -> Placement
Documentation
p_hsUntypedSplice :: SpliceDecoration -> HsUntypedSplice 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
p_hsExpr' :: IsApplicand -> BracketStyle -> HsExpr GhcPs -> R () Source #
p_hsCmdTop :: BracketStyle -> HsCmdTop GhcPs -> R () Source #
Print a top-level command.