HORIZON HASKELLDocslts/ghc-10.0.x77a86622026-10-31Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 77a8662 · 2026-10-31

Moduleghc-lib-parser-9.14.1.20251220GHC2021

GHC.Hs.Doc

Types and functions for raw and lexed docstrings.

Synopsis
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.

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