summaryrefslogtreecommitdiff
path: root/compiler/Language/Haskell/Syntax
diff options
context:
space:
mode:
authorSimon Peyton Jones <simonpj@microsoft.com>2021-01-18 15:38:09 +0000
committerKrzysztof Gogolewski <krzysztof.gogolewski@tweag.io>2021-01-28 22:17:43 +0100
commitafee3b2965ca43d069f6b4a7fb2b7d33d75c446f (patch)
treeb939ac5ff5b320ddfc0e2de0bb285e95d6392b51 /compiler/Language/Haskell/Syntax
parent0249974e7622e35927060da21f9231cb1e6357b9 (diff)
downloadhaskell-wip/T19074a.tar.gz
Make PatSyn immutablewip/T19074a
Provoked by #19074, this patch makes GHC.Core.PatSyn.PatSyn immutable, by recording only the *Name* of the matcher and builder rather than (as currently) the *Id*. See Note [Keep Ids out of PatSyn] in GHC.Core.PatSyn. Updates haddock submodule.
Diffstat (limited to 'compiler/Language/Haskell/Syntax')
-rw-r--r--compiler/Language/Haskell/Syntax/Expr.hs7
1 files changed, 3 insertions, 4 deletions
diff --git a/compiler/Language/Haskell/Syntax/Expr.hs b/compiler/Language/Haskell/Syntax/Expr.hs
index ecc7c9f828..72c16fe22a 100644
--- a/compiler/Language/Haskell/Syntax/Expr.hs
+++ b/compiler/Language/Haskell/Syntax/Expr.hs
@@ -354,10 +354,9 @@ data HsExpr p
-- For details on above see note [Api annotations] in GHC.Parser.Annotation
| RecordCon
- { rcon_ext :: XRecordCon p
- , rcon_con_name :: LIdP p -- The constructor name;
- -- not used after type checking
- , rcon_flds :: HsRecordBinds p } -- The fields
+ { rcon_ext :: XRecordCon p
+ , rcon_con :: XRec p (ConLikeP p) -- The constructor
+ , rcon_flds :: HsRecordBinds p } -- The fields
-- | Record update
--