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-9.14.1GHC2021

GHC.Hs.DocString

An exactprintable structure for docstrings

  • 5 types
  • 13 values
  • Packageghc-9.14.1
  • Exports18
  • LanguageGHC2021
  • LicenceBSD-3-Clause
  • SourceDocString.hs
datadata HsDocString
#

Haskell Documentation String

Rich structure to support exact printing The location around each chunk doesn't include the decorators

Constructors

Instances7Eq, Data, Show, NFData, Outputable, Binary, …
datadata HsDocStringDecorator
#

Constructors

Instances7Eq, Data, Ord, Show, NFData, Outputable, …
newtypenewtype HsDocStringChunk
#

A contiguous chunk of documentation

Instances7Eq, Data, Ord, Show, NFData, Outputable, …

Annotate a pretty printed thing with its doc The docstring comes after if is HsDocStringPrevious Otherwise it comes before. Note - we convert MultiLineDocString HsDocStringPrevious to HsDocStringNext because we can't control if something else will be pretty printed on the same line