Moduleghc-9.10.3GHC2021
GHC.Core.TyCo.Ppr
Pretty-printing types and coercions.
- 1 type
- 33 values
- Packageghc-9.10.3
- Exports34
- LanguageGHC2021
- LicenceBSD-3-Clause
- SourcePpr.hs
Precedence
7 declarationsPretty-printing types
24 declarationsPrint 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
3 declarationsdebugPprType 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.