HORIZON HASKELLDocslts/ghc-9.14.xb2f3bfd2026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 9.14.1 · lts/ghc-9.14.x · b2f3bfd · 2026-10-11

Moduleghc-lib-parser-9.14.1.20251220GHC2021

GHC.Hs.Doc

Types and functions for raw and lexed docstrings.

  • 7 types
  • 5 values
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

Instances5Eq, 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 DocStructureItem
#
Instances3NFData, Outputable, Binary
datadata Docs
#

Constructors

Instances3NFData, Outputable, Binary
  • NFData DocsDefined in ghc-lib-parser-9.14.1.20251220 · GHC.Hs.Doc
  • Outputable DocsDefined in ghc-lib-parser-9.14.1.20251220 · GHC.Hs.Doc
  • Binary DocsDefined in ghc-lib-parser-9.14.1.20251220 · GHC.Hs.Doc