ghc-7.6.1.20120913: The GHC API

Safe HaskellNone

PprTyThing

Synopsis

Documentation

pprTyThingInContext :: PrintExplicitForalls -> TyThing -> SDocSource

Pretty-prints a TyThing in context: that is, if the entity is a data constructor, record selector, or class method, then the entity's parent declaration is pretty-printed with irrelevant parts omitted.

pprTyThingLoc :: PrintExplicitForalls -> TyThing -> SDocSource

Pretty-prints a TyThing with its defining location.

pprTyThingHdr :: PrintExplicitForalls -> TyThing -> SDocSource

Pretty-prints the TyThing header. For functions and data constructors the function is equivalent to pprTyThing but for type constructors and classes it prints only the header part of the declaration.