X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=compiler%2Fmain%2FPprTyThing.hs;h=63549841596b2fdb7494fd11a215833fa2580cb7;hp=2763b052fd294344ef4e5c800bd6be1192533abe;hb=2a6d497b719b39d7d7d73051f3baa783db343abb;hpb=0065d5ab628975892cea1ec7303f968c3338cbe1 diff --git a/compiler/main/PprTyThing.hs b/compiler/main/PprTyThing.hs index 2763b05..6354984 100644 --- a/compiler/main/PprTyThing.hs +++ b/compiler/main/PprTyThing.hs @@ -17,7 +17,9 @@ module PprTyThing ( #include "HsVersions.h" import qualified GHC + import GHC ( TyThing(..), SrcLoc ) +import DataCon ( dataConResTys ) import Outputable -- ----------------------------------------------------------------------------- @@ -129,12 +131,15 @@ pprDataCon exts dataCon = pprAlgTyCon exts tyCon (== dataCon) (const True) where tyCon = GHC.dataConTyCon dataCon pprDataConDecl exts gadt_style show_label dataCon + = error "kevind stub" +{- | not gadt_style = ppr_fields tys_w_strs | otherwise = ppr_bndr dataCon <+> dcolon <+> sep [ ppr_tvs, GHC.pprThetaArrow theta, pp_tau ] where - (tyvars, theta, argTypes, tyCon, res_tys) = GHC.dataConSig dataCon + (tyvars, theta, argTypes, tyCon) = GHC.dataConSig dataCon labels = GHC.dataConFieldLabels dataCon + res_tys = dataConResTys dataCon qualVars = filter (flip notElem (GHC.tyConTyVars tyCon)) tyvars stricts = GHC.dataConStrictMarks dataCon tys_w_strs = zip stricts argTypes @@ -171,7 +176,7 @@ pprDataConDecl exts gadt_style show_label dataCon = ppr_bndr dataCon <+> braces (sep (punctuate comma (ppr_trim maybe_show_label (zip labels fields)))) - +-} pprClass exts cls | null methods = pprClassHdr exts cls