HORIZON HASKELLDocslts/ghc-10.0.x8fef28d2026-11-02Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8fef28d · 2026-11-02

Moduleghc-lib-parser-9.14.1.20251220GHC2021

GHC.Hs.DocString

An exactprintable structure for docstrings

Synopsis
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