Fix Trac 1865: GHCi debugger crashes with :print
[ghc-hetmet.git] / compiler / ghci / Debugger.hs
index d31d4d6..9fbee36 100644 (file)
@@ -81,7 +81,7 @@ pprintClosureCommand session bindThings force str = do
      --  Then, we extract a substitution,
      --  mapping the old tyvars to the reconstructed types.
        let Just reconstructed_type = termType term
-           Just subst = computeRTTIsubst (idType id) (reconstructed_type)
+           subst = computeRTTIsubst (idType id) (reconstructed_type)
        return (term',subst)
 
    tidyTermTyVars :: Session -> Term -> IO Term