X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=compiler%2Fghci%2FRtClosureInspect.hs;h=050d680d6c05a5c2217e316ee9ef3fae53cdcbe7;hp=59f5669e3ede9765da30d81dff4541189e4bd8ca;hb=fdf8656855d26105ff36bdd24d41827b05037b91;hpb=a52ff7619e8b7d74a9d933d922eeea49f580bca8 diff --git a/compiler/ghci/RtClosureInspect.hs b/compiler/ghci/RtClosureInspect.hs index 59f5669..050d680 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