Fixed a bug with the :print command spotted by Bernie Pope.
authorPepe Iborra <mnislaih@gmail.com>
Fri, 16 Feb 2007 20:10:52 +0000 (20:10 +0000)
committerPepe Iborra <mnislaih@gmail.com>
Fri, 16 Feb 2007 20:10:52 +0000 (20:10 +0000)
Test ghci.debugger/scripts/print018 covers this

compiler/ghci/Debugger.hs
compiler/ghci/RtClosureInspect.hs

index b5c30d6..19a9e99 100644 (file)
@@ -265,7 +265,7 @@ instantiateTyVarsToUnknown cms ty
 
 -- | The inverse function. Strip the GHC.Base.Unknowns in the type of the id, they correspond to tyvars. The caller must provide an infinite list of fresh names
 stripUnknowns :: [Name] -> Id -> Id
-stripUnknowns names id = setIdType id . sigmaType . fst . go names . idType 
+stripUnknowns names id = setIdType id . fst . go names . idType 
                            $ id
  where 
    go tyvarsNames@(v:vv) ty 
index f653de6..7a6dee5 100644 (file)
@@ -39,8 +39,6 @@ module RtClosureInspect(
      isPointed,
      isFullyEvaluatedTerm,
 --     unsafeDeepSeq, 
-     
-     sigmaType
  ) where 
 
 #include "HsVersions.h"
@@ -571,7 +569,7 @@ zonkTerm = foldTerm idTermFoldM {
 
 
 -- Is this defined elsewhere?
--- Find all free tyvars and insert the appropiate ForAll.
+-- Generalize the type: find all free tyvars and wrap in the appropiate ForAll.
 sigmaType ty = mkForAllTys (varSetElems$ tyVarsOfType (dropForAlls ty)) ty
 
 {-