X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=compiler%2Fghci%2FRtClosureInspect.hs;h=884661f39c19f0d8e64afa67c0646e5e94198b3b;hp=b4068a7aa76ecb92908c8f1c9a15e5eb2a3db80a;hb=224ef3094189bc9a33f23285b5dccbffdd8d7de0;hpb=d1bffa693adfa48ef65240bb3c097f5f5f77868e diff --git a/compiler/ghci/RtClosureInspect.hs b/compiler/ghci/RtClosureInspect.hs index b4068a7..884661f 100644 --- a/compiler/ghci/RtClosureInspect.hs +++ b/compiler/ghci/RtClosureInspect.hs @@ -448,7 +448,7 @@ cPprTermBase y = --Note pprinting of list terms is not lazy doList p (Term{subTerms=[h,t]}) = do let elems = h : getListTerms t - isConsLast = not(termType(last elems) `coreEqType` termType h) + isConsLast = not(termType(last elems) `eqType` termType h) print_elems <- mapM (y cons_prec) elems return$ if isConsLast then cparen (p >= cons_prec) @@ -879,8 +879,8 @@ improveRTTIType _ base_ty new_ty myDataConInstArgTys :: DataCon -> [Type] -> [Type] myDataConInstArgTys dc args - | null (dataConExTyVars dc) && null (dataConEqTheta dc) = dataConInstArgTys dc args - | otherwise = dataConRepArgTys dc + | isVanillaDataCon dc = dataConInstArgTys dc args + | otherwise = dataConRepArgTys dc mydataConType :: DataCon -> QuantifiedType -- ^ Custom version of DataCon.dataConUserType where we