#include "HsVersions.h"
import Type ( openTypeKind, liftedTypeKind, unliftedTypeKind,
- splitFunTy_maybe, eqKind )
+ splitFunTy_maybe, eqKind, pprType )
import TypeRep ( Type(..), TyNote(..), PredType(..), Kind, ThetaType )
import TyCon ( TyCon, isTupleTyCon, tyConArity, tupleTyConBoxity )
import Var ( isId, tyVarKind, idType )
import BasicTypes ( IPName(..), Arity, Version, mapIPName, tupleParens, Boxity )
import Outputable
import FastString
-
-#ifdef DEBUG
-import TypeRep( crudePprType )
-#endif
\end{code}
-- Simple cases
pprIfaceType ctxt_prec (IfaceTyVar tyvar) = ppr tyvar
pprIfaceType ctxt_prec (IfaceTyConApp tc tys) = ppr_tc_app ctxt_prec tc tys
-pprIfaceType ctxt_prec (IfacePredTy st) = braces (ppr st)
+pprIfaceType ctxt_prec (IfacePredTy st) = braces (ppr st)
-- Function types
pprIfaceType ctxt_prec (IfaceFunTy ty1 ty2)
| Just (arg,res) <- splitFunTy_maybe k
= IfaceFunKind (toIfaceKind arg) (toIfaceKind res)
#ifdef DEBUG
- | otherwise = pprTrace "toIfaceKind" (crudePprType k) IfaceOpenTypeKind
+ | otherwise = pprTrace "toIfaceKind" (pprType k) IfaceOpenTypeKind
#endif
---------------------