ddc-core-0.4.3.1: Disciplined Disciple Compiler core language and type checker.

Safe HaskellSafe
LanguageHaskell98

DDC.Type.Exp.Generic.Pretty

Synopsis

Documentation

type PrettyConfig l = (Pretty (GTAnnot l), Pretty (GTBindVar l), Pretty (GTBoundVar l), Pretty (GTBindCon l), Pretty (GTBoundCon l), Pretty (GTPrim l)) Source #

Synonym for pretty constraints on the configurable types.

pprRawT :: PrettyConfig l => GType l -> Doc Source #

Pretty print a type using the generic, raw syntax.

pprRawPrecT :: PrettyConfig l => Int -> GType l -> Doc Source #

Like pprRawT, but take the initial precedence.

pprRawC :: PrettyConfig l => GTyCon l -> Doc Source #

Pretty print a type constructor using the generic, raw syntax.