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:
dbc0cba
)
Following an indirection doesn't count as a RTTI step
author
Pepe Iborra
<mnislaih@gmail.com>
Fri, 28 Sep 2007 09:19:41 +0000
(09:19 +0000)
committer
Pepe Iborra
<mnislaih@gmail.com>
Fri, 28 Sep 2007 09:19:41 +0000
(09:19 +0000)
compiler/ghci/RtClosureInspect.hs
patch
|
blob
|
history
diff --git
a/compiler/ghci/RtClosureInspect.hs
b/compiler/ghci/RtClosureInspect.hs
index
4f9588f
..
c495229
100644
(file)
--- a/
compiler/ghci/RtClosureInspect.hs
+++ b/
compiler/ghci/RtClosureInspect.hs
@@
-587,7
+587,7
@@
cvObtainTerm hsc_env bound force mb_ty hval = runTR hsc_env $ do
-- and showing the '_' is more useful.
t | isThunk t && force -> seq a $ go (pred bound) tv ty a
-- We always follow indirections
- Indirection _ -> go (pred bound) tv ty $! (ptrs clos ! 0)
+ Indirection _ -> go bound tv ty $! (ptrs clos ! 0)
-- The interesting case
Constr -> do
Right dcname <- dataConInfoPtrToName (infoPtr clos)