HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Moduleghc-9.10.3GHC2021

GHC.Hs.Doc

Types and functions for raw and lexed docstrings.

  • 7 types
  • 5 values
  • Packageghc-9.10.3
  • Exports12
  • LanguageGHC2021
  • LicenceBSD-3-Clause
  • SourceDoc.hs
datadata WithHsDocIdentifiers a pass
#

Annotate a value with the probable identifiers found in it These will be used by haddock to generate links.

The identifiers are bundled along with their location in the source file. This is useful for tooling to know exactly where they originate.

This type is currently used in two places - for regular documentation comments, with a set to HsDocString, and for adding identifier information to warnings, where a is StringLiteral

Instances6ToHie, Eq, Data, NFData, Outputable, Binary
valuepprWithDoc :: LHsDoc name -> SDoc -> SDoc
#

Pretty print a thing with its doc The docstring will include the comment decorators '-- |', '{-|' etc and will come either before or after depending on how it was written i.e it will come after the thing if it is a '-- ^' or '{-^' and before otherwise.

datadata Docs
#

Constructors

Instances3NFData, Outputable, Binary