Moduleghc-10.0.0.20260917GHC2024
GHC.Core.TyCo.Ppr
Pretty-printing types and coercions.
Synopsis
- newtype PprPrec
- value topPrec
- value sigPrec
- value opPrec
- value funPrec
- value appPrec
- value maybeParen
- value pprType
- value pprParendType
- value pprTidiedType
- value pprPrecType
- value pprPrecTypeX
- value pprTypeApp
- value pprTCvBndr
- value pprTCvBndrs
- value pprSigmaType
- value pprTheta
- value pprParendTheta
- value pprForAll
- value pprUserForAll
- value pprTyVar
- value pprTyVars
- value pprThetaArrowTy
- value pprClassPred
- value pprKind
- value pprParendKind
- value pprTyLit
- value pprDataCons
- value pprWithInvisibleBitsWhen
- value pprWithTYPE
- value pprSourceTyCon
- value pprCo
- value pprParendCo
- value debugPprType
- Packageghc-10.0.0.20260917
- Exports34
- LanguageGHC2024
- LicenceBSD-3-Clause
- SourcePpr.hs
Precedence
Pretty-printing types
Print a user-level forall; see Note [When to print foralls] in
GHC.Iface.Type.
This variant preserves any use of TYPE in a type, effectively locally setting -fprint-explicit-runtime-reps.
Pretty-printing coercions
debugPprType is a simple pretty printer that prints a type without going through IfaceType. It does not format as prettily as the normal route, but it's much more direct, and that can be useful for debugging. E.g. with -dppr-debug it prints the kind on type-variable occurrences which the normal route fundamentally cannot do.