From: simonpj Date: Fri, 20 May 2005 11:58:01 +0000 (+0000) Subject: [project @ 2005-05-20 11:58:01 by simonpj] X-Git-Tag: Initial_conversion_from_CVS_complete~503 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=d1429dbd1cc8d65f0ff6451cf22f8eccc03e0acc;p=ghc-hetmet.git [project @ 2005-05-20 11:58:01 by simonpj] Wibble to preceding GHCi commit --- diff --git a/ghc/compiler/typecheck/TcRnDriver.lhs b/ghc/compiler/typecheck/TcRnDriver.lhs index 925b838..e08dd71 100644 --- a/ghc/compiler/typecheck/TcRnDriver.lhs +++ b/ghc/compiler/typecheck/TcRnDriver.lhs @@ -94,7 +94,7 @@ import TcHsType ( kcHsType ) import TcMType ( zonkTcType, zonkQuantifiedTyVar ) import TcMatches ( tcStmts, tcDoStmt ) import TcSimplify ( tcSimplifyInteractive, tcSimplifyInfer ) -import TcType ( Type, mkForAllTys, mkFunTys, mkTyConApp, tyVarsOfType, +import TcType ( Type, mkForAllTys, mkFunTys, mkTyConApp, tyVarsOfType, isTauTy, isUnLiftedType, tyClsNamesOfDFunHead, tyClsNamesOfType, isUnitTy ) import TcEnv ( tcLookupTyCon, tcLookupId, tcLookupGlobal ) import RnTypes ( rnLHsType ) @@ -968,7 +968,7 @@ mkPlan stmt@(L loc _) -- [stmt] ; runPlans [do { stuff@([v_id], _) <- tcGhciStmts [stmt, print_v] ; v_ty <- zonkTcType (idType v_id) - ; ifM (isUnitTy v_ty) failM + ; ifM (isUnitTy v_ty || not (isTauTy v_ty)) failM ; return stuff }, tcGhciStmts [stmt] ]}