summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2022-02-22 21:31:35 -0500
committerBen Gamari <ben@smart-cactus.org>2022-02-24 14:40:48 -0500
commite5ee23c22797c73b51489b4e88f48ddb75d57227 (patch)
tree548388c8ac7e9ee6e9a6160a35b826b0a3006a68
parent59b7f764489d3eb765e0b40e916b1438ff76e1fa (diff)
downloadhaskell-e5ee23c22797c73b51489b4e88f48ddb75d57227.tar.gz
Don't export unsafeGetFreshLocalUnique
When looking at GHC.Types.Var.Env I noticed that unsafeGetFreshLocalUnique, which is quite unsafe and should be internal to the module, is exported yet has only internal users. Here we hide this footgun from the outside world.
-rw-r--r--compiler/GHC/Types/Var/Env.hs1
1 files changed, 0 insertions, 1 deletions
diff --git a/compiler/GHC/Types/Var/Env.hs b/compiler/GHC/Types/Var/Env.hs
index 3ad0f10156..9fcdafd009 100644
--- a/compiler/GHC/Types/Var/Env.hs
+++ b/compiler/GHC/Types/Var/Env.hs
@@ -54,7 +54,6 @@ module GHC.Types.Var.Env (
getInScopeVars, lookupInScope, lookupInScope_Directly,
unionInScope, elemInScopeSet, uniqAway,
varSetInScope,
- unsafeGetFreshLocalUnique,
-- * The RnEnv2 type
RnEnv2,