summaryrefslogtreecommitdiff
path: root/compiler/GHC/IfaceToCore.hs
diff options
context:
space:
mode:
authorMatthew Pickering <matthewtpickering@gmail.com>2022-11-01 17:09:29 +0000
committerMatthew Pickering <matthewtpickering@gmail.com>2022-11-01 17:13:19 +0000
commit92721eb6d9731e737aa007f0f220c99a5c32572c (patch)
tree9975f24877efe63e41544ed881468bd78b37b6cd /compiler/GHC/IfaceToCore.hs
parent270037faa124bf59dda8ba4f3d73b97d4c109a5f (diff)
downloadhaskell-wip/docs-core-prog.tar.gz
Clarify status of bindings in WholeCoreBindingswip/docs-core-prog
Gergo points out that these bindings are tidied, rather than prepd as the variable claims. Therefore we update the name of the variable to reflect reality and add a comment to the data type to try to erase any future confusion. Fixes #22307
Diffstat (limited to 'compiler/GHC/IfaceToCore.hs')
-rw-r--r--compiler/GHC/IfaceToCore.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/GHC/IfaceToCore.hs b/compiler/GHC/IfaceToCore.hs
index ad975f1b0f..0999f419b6 100644
--- a/compiler/GHC/IfaceToCore.hs
+++ b/compiler/GHC/IfaceToCore.hs
@@ -240,9 +240,9 @@ typecheckIface iface
}
typecheckWholeCoreBindings :: IORef TypeEnv -> WholeCoreBindings -> IfG [CoreBind]
-typecheckWholeCoreBindings type_var (WholeCoreBindings prepd_binding this_mod _) =
+typecheckWholeCoreBindings type_var (WholeCoreBindings tidy_bindings this_mod _) =
initIfaceLcl this_mod (text "typecheckWholeCoreBindings") NotBoot $ do
- tcTopIfaceBindings type_var prepd_binding
+ tcTopIfaceBindings type_var tidy_bindings
{-