Safe Haskell | None |
---|---|
Language | Haskell98 |
- pprTyThing :: TyThing -> SDoc
- pprTyThingInContext :: TyThing -> SDoc
- pprTyThingLoc :: TyThing -> SDoc
- pprTyThingInContextLoc :: TyThing -> SDoc
- pprTyThingHdr :: TyThing -> SDoc
- pprTypeForUser :: Type -> SDoc
Documentation
pprTyThing :: TyThing -> SDocSource
Pretty-prints a TyThing
.
pprTyThingInContext :: 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 :: TyThing -> SDocSource
Pretty-prints a TyThing
with its defining location.
pprTyThingInContextLoc :: TyThing -> SDocSource
Like pprTyThingInContext
, but adds the defining location.
pprTyThingHdr :: 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.
pprTypeForUser :: Type -> SDocSource