summaryrefslogtreecommitdiff
path: root/compiler/Language
diff options
context:
space:
mode:
authorSimon Peyton Jones <simonpj@microsoft.com>2021-01-18 15:38:09 +0000
committerMarge Bot <ben+marge-bot@smart-cactus.org>2021-01-29 23:09:58 -0500
commit3b8235334b7838013c9e955db3e7762a1c7fef43 (patch)
treebb601c302ad43b60552bdc775b4ccb592d357e71 /compiler/Language
parent5140841ca1acaeaeef893233ae3d08ce4573b01b (diff)
downloadhaskell-3b8235334b7838013c9e955db3e7762a1c7fef43.tar.gz
Make PatSyn immutable
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')
-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
--