summaryrefslogtreecommitdiff
path: root/compiler
diff options
context:
space:
mode:
authorPepe Iborra <mnislaih@gmail.com>2007-12-08 18:18:30 +0000
committerPepe Iborra <mnislaih@gmail.com>2007-12-08 18:18:30 +0000
commit4d71f5ee6dbbfedb4a55767e4375f4c0aadf70bb (patch)
tree3e15feb2073af3ab6fc0b6b923782f209dea8b5f /compiler
parentd31018bce01934b8399a15dbcae35be0827b45d1 (diff)
downloadhaskell-4d71f5ee6dbbfedb4a55767e4375f4c0aadf70bb.tar.gz
Prevent the binding of unboxed things by :print
Diffstat (limited to 'compiler')
-rw-r--r--compiler/ghci/Debugger.hs6
1 files changed, 4 insertions, 2 deletions
diff --git a/compiler/ghci/Debugger.hs b/compiler/ghci/Debugger.hs
index 72688ddd51..c53a7392a3 100644
--- a/compiler/ghci/Debugger.hs
+++ b/compiler/ghci/Debugger.hs
@@ -73,8 +73,10 @@ pprintClosureCommand session bindThings force str = do
go cms id = do
term_ <- GHC.obtainTerm cms force id
term <- tidyTermTyVars cms term_
- term' <- if not bindThings then return term
- else bindSuspensions cms term
+ term' <- if bindThings &&
+ Just False == isUnliftedTypeKind `fmap` termType term
+ then bindSuspensions cms term
+ else return term
-- Before leaving, we compare the type obtained to see if it's more specific
-- Then, we extract a substitution,
-- mapping the old tyvars to the reconstructed types.