summaryrefslogtreecommitdiff
path: root/compiler/Language/Haskell/Syntax/Expr.hs
diff options
context:
space:
mode:
authorAdam Gundry <adam@well-typed.com>2021-04-23 23:05:04 +0100
committerAdam Gundry <adam@well-typed.com>2021-04-23 23:05:04 +0100
commit0015f019f72ddd2ca4a46e987bf17acaf0ce59d2 (patch)
tree444e436eb750834da1fd6f8ea117a4166ef00879 /compiler/Language/Haskell/Syntax/Expr.hs
parent7bc7eea3897dcb8a87fdb0921f451b9bc77309f6 (diff)
downloadhaskell-wip/amg/rename-ttg-notes.tar.gz
Rename references to Note [Trees That Grow] consistently [skip ci]wip/amg/rename-ttg-notes
I tend to find Notes by (case-sensitive) grep, and I spent a surprisingly long time looking for this Note, because it was referenced inconsistently with different cases, and without the module name.
Diffstat (limited to 'compiler/Language/Haskell/Syntax/Expr.hs')
-rw-r--r--compiler/Language/Haskell/Syntax/Expr.hs17
1 files changed, 11 insertions, 6 deletions
diff --git a/compiler/Language/Haskell/Syntax/Expr.hs b/compiler/Language/Haskell/Syntax/Expr.hs
index e7756cc804..f795aa702f 100644
--- a/compiler/Language/Haskell/Syntax/Expr.hs
+++ b/compiler/Language/Haskell/Syntax/Expr.hs
@@ -607,7 +607,7 @@ data HsExpr p
| HsPragE (XPragE p) (HsPragE p) (LHsExpr p)
| XExpr !(XXExpr p)
- -- Note [Trees that Grow] extension constructor for the
+ -- Note [Trees That Grow] in Language.Haskell.Syntax.Extension for the
-- general idea, and Note [Rebindable syntax and HsExpansion] in GHC.Hs.Expr
-- for an example of how we use it.
@@ -661,7 +661,8 @@ type LHsTupArg id = XRec id (HsTupArg id)
data HsTupArg id
= Present (XPresent id) (LHsExpr id) -- ^ The argument
| Missing (XMissing id) -- ^ The argument is missing, but this is its type
- | XTupArg !(XXTupArg id) -- ^ Note [Trees that Grow] extension point
+ | XTupArg !(XXTupArg id) -- ^ Extension point; see Note [Trees That Grow]
+ -- in Language.Haskell.Syntax.Extension
{-
Note [Parens in HsSyn]
@@ -933,7 +934,8 @@ data HsCmd id
-- For details on above see note [exact print annotations] in GHC.Parser.Annotation
- | XCmd !(XXCmd id) -- Note [Trees that Grow] extension point
+ | XCmd !(XXCmd id) -- Extension point; see Note [Trees That Grow]
+ -- in Language.Haskell.Syntax.Extension
-- | Haskell Array Application Type
@@ -953,7 +955,8 @@ type LHsCmdTop p = XRec p (HsCmdTop p)
data HsCmdTop p
= HsCmdTop (XCmdTop p)
(LHsCmd p)
- | XCmdTop !(XXCmdTop p) -- Note [Trees that Grow] extension point
+ | XCmdTop !(XXCmdTop p) -- Extension point; see Note [Trees That Grow]
+ -- in Language.Haskell.Syntax.Extension
-----------------------
@@ -1525,7 +1528,8 @@ data HsSplice id
(XSpliced id)
ThModFinalizers -- TH finalizers produced by the splice.
(HsSplicedThing id) -- The result of splicing
- | XSplice !(XXSplice id) -- Note [Trees that Grow] extension point
+ | XSplice !(XXSplice id) -- Extension point; see Note [Trees That Grow]
+ -- in Language.Haskell.Syntax.Extension
-- | A splice can appear with various decorations wrapped around it. This data
-- type captures explicitly how it was originally written, for use in the pretty
@@ -1587,7 +1591,8 @@ data HsBracket p
-- True: 'x, False: ''T
-- (The Bool flag is used only in pprHsBracket)
| TExpBr (XTExpBr p) (LHsExpr p) -- [|| expr ||]
- | XBracket !(XXBracket p) -- Note [Trees that Grow] extension point
+ | XBracket !(XXBracket p) -- Extension point; see Note [Trees That Grow]
+ -- in Language.Haskell.Syntax.Extension
isTypedBracket :: HsBracket id -> Bool
isTypedBracket (TExpBr {}) = True