Hoogle Search
Within LTS Haskell 24.45 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
pprUnitIdForUser :: UnitState -> UnitId -> SDocghc GHC.Unit.State Pretty-print a UnitId for the user. Cabal packages may contain several components (programs, libraries, etc.). As far as GHC is concerned, installed package components ("units") are identified by an opaque UnitId string provided by Cabal. As the string contains a hash, we don't want to display it to users so GHC queries the database to retrieve some infos about the original source package (name, version, component name). Instead we want to display: packagename-version[:componentname] Component name is only displayed if it isn't the default library To do this we need to query a unit database.
pprUnitInfoForUser :: UnitInfo -> SDocghc GHC.Unit.State No documentation available.
printInfoForUser :: Logger -> NamePprCtx -> SDoc -> IO ()ghc GHC.Utils.Error No documentation available.
printOutputForUser :: Logger -> NamePprCtx -> SDoc -> IO ()ghc GHC.Utils.Error No documentation available.
-
ghc GHC.Utils.IO.Unsafe No documentation available.
-
ghc GHC.Utils.Logger Format of a dump Dump formats are loosely defined: dumps may contain various additional headers and annotations and they may be partial. DumpFormat is mainly a hint (e.g. for syntax highlighters).
sdocPrintExplicitForalls :: SDocContext -> !Boolghc GHC.Utils.Outputable No documentation available.
sdocUnitIdForUser :: SDocContext -> !FastString -> SDocghc GHC.Utils.Outputable Used to map UnitIds to more friendly "package-version:component" strings while pretty-printing. Use pprWithUnitState to set it. Users should never have to set it to pretty-print SDocs emitted by GHC, otherwise it's a bug. It's an internal field used to thread the UnitState so that the Outputable instance of UnitId can use it. See Note [Pretty-printing UnitId] in GHC.Unit for more details. Note that we use FastString instead of UnitId to avoid boring module inter-dependency issues.
type
LForeignDecl pass = XRec pass ForeignDecl passghc Language.Haskell.Syntax.Decls Located Foreign Declaration
XForeignDecl :: !XXForeignDecl pass -> ForeignDecl passghc Language.Haskell.Syntax.Decls No documentation available.