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

An exactprintable structure for docstrings

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