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

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

Moduleghc-lib-parser-9.14.1.20251220GHC2021

GHC.Hs.DocString

An exactprintable structure for docstrings

  • 5 types
  • 13 values
datadata HsDocString
#

Haskell Documentation String

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

Constructors

Instances6Eq, 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