Instances2Outputable, NamedThing
Outputable TyThingDefined in ghc-lib-parser-9.14.1.20251220 · GHC.Types.TyThingNamedThing TyThingDefined in ghc-lib-parser-9.14.1.20251220 · GHC.Types.TyThing
:: a typeCtrl KGHC 9.14.1 · lts/ghc-9.14.x · 45dd537 · 2026-10-11
Moduleghc-lib-parser-9.14.1.20251220GHC2021
A global typecheckable-thing, essentially anything that has a name.
Outputable TyThingDefined in ghc-lib-parser-9.14.1.20251220 · GHC.Types.TyThingNamedThing TyThingDefined in ghc-lib-parser-9.14.1.20251220 · GHC.Types.TyThingClass that abstracts out the common ability of the monads in GHC to lookup a TyThing in the monadic environment by Name. Provides a number of related convenience functions for accessing particular kinds of TyThing
lookupThing :: Name -> m TyThinglookupId :: Name -> m IdlookupDataCon :: Name -> m DataConlookupTyCon :: Name -> m TyConMonadThings m => MonadThings (ReaderT s m)Defined in ghc-lib-parser-9.14.1.20251220 · GHC.Types.TyThingReturns True if there should be no interface-file declaration
for this thing on its own: either it is built-in, or it is part
of some other declaration, or it is generated implicitly by some
other declaration.
tyThingParent_maybe x returns (Just p) when pprTyThingInContext should print a declaration for p (albeit with some "..." in it) when asked to show x It returns the *immediate* parent. So a datacon returns its tycon but the tycon could be the associated type of a class, so it in turn might have a parent.
The GlobalRdrElts that a TyThing should bring into scope. Used to build the GlobalRdrEnv for the InteractiveContext.
Obtain information pertinent to the renamer about a particular TyThing.
This extracts out renamer information from typechecker information.