summaryrefslogtreecommitdiff
path: root/compiler/GHC/Types/Var
diff options
context:
space:
mode:
authorAndreas Klebinger <klebinger.andreas@gmx.at>2022-08-14 02:40:15 +0200
committerMarge Bot <ben+marge-bot@smart-cactus.org>2022-10-17 19:21:15 -0400
commit08ab5419286d2620f2e6762607bad03c5bcd29ad (patch)
treeba54a5600282d13e4eb48ede9efac6679363d70e /compiler/GHC/Types/Var
parentd80ad2f40f2092f14402351a6a3cb944039a57df (diff)
downloadhaskell-08ab5419286d2620f2e6762607bad03c5bcd29ad.tar.gz
Avoid allocating intermediate lists for non recursive bindings.
We do so by having an explicit folding function that doesn't need to allocate intermediate lists first. Fixes #22196
Diffstat (limited to 'compiler/GHC/Types/Var')
-rw-r--r--compiler/GHC/Types/Var/Env.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/GHC/Types/Var/Env.hs b/compiler/GHC/Types/Var/Env.hs
index 88f27af415..96ca5d53a6 100644
--- a/compiler/GHC/Types/Var/Env.hs
+++ b/compiler/GHC/Types/Var/Env.hs
@@ -47,7 +47,7 @@ module GHC.Types.Var.Env (
anyDVarEnv,
-- * The InScopeSet type
- InScopeSet,
+ InScopeSet(..),
-- ** Operations on InScopeSets
emptyInScopeSet, mkInScopeSet, mkInScopeSetList, delInScopeSet,