summaryrefslogtreecommitdiff
path: root/compiler/GHC/Parser/PostProcess.hs
diff options
context:
space:
mode:
authorromes <rodrigo.m.mesquita@gmail.com>2022-06-13 14:12:44 +0200
committerMarge Bot <ben+marge-bot@smart-cactus.org>2022-07-06 13:50:27 -0400
commite4eea07b808bea530cf4b4fd2468035dd2cad67b (patch)
treecaccdfb05a598410064c0d24b32845d5471d1278 /compiler/GHC/Parser/PostProcess.hs
parent3547e2640af45ab48187387fb60795a09b662038 (diff)
downloadhaskell-e4eea07b808bea530cf4b4fd2468035dd2cad67b.tar.gz
TTG: Move CoreTickish out of LHS.Binds
Remove the `[CoreTickish]` fields from datatype `HsBindLR idL idR` and move them to the extension point instance, according to the plan outlined in #21592 to separate the base AST from the GHC specific bits.
Diffstat (limited to 'compiler/GHC/Parser/PostProcess.hs')
-rw-r--r--compiler/GHC/Parser/PostProcess.hs7
1 files changed, 3 insertions, 4 deletions
diff --git a/compiler/GHC/Parser/PostProcess.hs b/compiler/GHC/Parser/PostProcess.hs
index 9dabe3331d..486517ea2b 100644
--- a/compiler/GHC/Parser/PostProcess.hs
+++ b/compiler/GHC/Parser/PostProcess.hs
@@ -686,7 +686,7 @@ mkPatSynMatchGroup (L loc patsyn_name) (L ld decls) =
fromDecl (L loc decl@(ValD _ (PatBind _
-- AZ: where should these anns come from?
pat@(L _ (ConPat noAnn ln@(L _ name) details))
- rhs _))) =
+ rhs))) =
do { unless (name == patsyn_name) $
wrongNameBindingErr (locA loc) decl
; match <- case details of
@@ -1306,8 +1306,7 @@ makeFunBind :: LocatedN RdrName -> LocatedL [LMatch GhcPs (LHsExpr GhcPs)]
makeFunBind fn ms
= FunBind { fun_ext = noExtField,
fun_id = fn,
- fun_matches = mkMatchGroup FromSource ms,
- fun_tick = [] }
+ fun_matches = mkMatchGroup FromSource ms }
-- See Note [FunBind vs PatBind]
checkPatBind :: SrcSpan
@@ -1329,7 +1328,7 @@ checkPatBind loc annsIn (L _ (BangPat (EpAnn _ ans cs) (L _ (VarPat _ v))))
checkPatBind loc annsIn lhs (L _ grhss) = do
cs <- getCommentsFor loc
- return (PatBind (EpAnn (spanAsAnchor loc) annsIn cs) lhs grhss ([],[]))
+ return (PatBind (EpAnn (spanAsAnchor loc) annsIn cs) lhs grhss)
checkValSigLhs :: LHsExpr GhcPs -> P (LocatedN RdrName)
checkValSigLhs (L _ (HsVar _ lrdr@(L _ v)))