summaryrefslogtreecommitdiff
path: root/compiler/GHC/HsToCore/Quote.hs
diff options
context:
space:
mode:
authorAlan Zimmerman <alan.zimm@gmail.com>2023-01-15 22:10:36 +0000
committerMarge Bot <ben+marge-bot@smart-cactus.org>2023-01-23 04:50:33 -0500
commitfec7c2ea8242773b53b253d9536426f743443944 (patch)
tree3cfe164e9505b5c7529530d970e18f4026cb807a /compiler/GHC/HsToCore/Quote.hs
parenta83ec778e44efcd4b56ce81ea0a183e6e73f026b (diff)
downloadhaskell-fec7c2ea8242773b53b253d9536426f743443944.tar.gz
EPA: Add SourceText to HsOverLabel
To be able to capture string literals with possible escape codes as labels. Close #22771
Diffstat (limited to 'compiler/GHC/HsToCore/Quote.hs')
-rw-r--r--compiler/GHC/HsToCore/Quote.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/GHC/HsToCore/Quote.hs b/compiler/GHC/HsToCore/Quote.hs
index f6cf36101b..63094c21dd 100644
--- a/compiler/GHC/HsToCore/Quote.hs
+++ b/compiler/GHC/HsToCore/Quote.hs
@@ -1508,7 +1508,7 @@ repE (HsVar _ (L _ x)) =
Just (DsSplice e) -> do { e' <- lift $ dsExpr e
; return (MkC e') } }
repE (HsIPVar _ n) = rep_implicit_param_name n >>= repImplicitParamVar
-repE (HsOverLabel _ s) = repOverLabel s
+repE (HsOverLabel _ _ s) = repOverLabel s
repE (HsRecSel _ (FieldOcc x _)) = repE (HsVar noExtField (noLocA x))