summaryrefslogtreecommitdiff
path: root/compiler/GHC.hs
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/GHC.hs
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/GHC.hs')
-rw-r--r--compiler/GHC.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/GHC.hs b/compiler/GHC.hs
index c7e7e5c826..c3524c7776 100644
--- a/compiler/GHC.hs
+++ b/compiler/GHC.hs
@@ -1280,7 +1280,7 @@ compileCore simplify fn = do
gutsToCoreModule safe_mode (Right mg) = CoreModule {
cm_module = mg_module mg,
cm_types = typeEnvFromEntities (bindersOfBinds (mg_binds mg))
- (mg_tcs mg)
+ (mg_tcs mg) (mg_patsyns mg)
(mg_fam_insts mg),
cm_binds = mg_binds mg,
cm_safe = safe_mode