projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ee03fe2
)
Remove skolem tyvars from the InteractiveContext once they have been instantiated...
author
Pepe Iborra
<mnislaih@gmail.com>
Mon, 30 Apr 2007 18:45:22 +0000
(18:45 +0000)
committer
Pepe Iborra
<mnislaih@gmail.com>
Mon, 30 Apr 2007 18:45:22 +0000
(18:45 +0000)
compiler/ghci/Debugger.hs
patch
|
blob
|
history
diff --git
a/compiler/ghci/Debugger.hs
b/compiler/ghci/Debugger.hs
index
a56b27b
..
4e61068
100644
(file)
--- a/
compiler/ghci/Debugger.hs
+++ b/
compiler/ghci/Debugger.hs
@@
-99,7
+99,11
@@
pprintClosureCommand session bindThings force str = do
ids = typeEnvIds type_env
ids' = map (\id -> id `setIdType` substTy subst (idType id)) ids
type_env'= extendTypeEnvWithIds type_env ids'
- ictxt' = ictxt { ic_type_env = type_env' }
+ subst_dom= varEnvKeys$ getTvSubstEnv subst
+ ictxt' = ictxt { ic_type_env = type_env'
+ , ic_tyvars = foldl' delVarSetByKey
+ (ic_tyvars ictxt)
+ subst_dom }
writeIORef ref (hsc_env {hsc_IC = ictxt'})
tidyTermTyVars :: Session -> Term -> IO Term