HORIZON HASKELLDocslts/ghc-10.0.x04404a62026-10-19Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 04404a6 · 2026-10-19

Moduleghc-10.0.0.20260917GHC2024

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

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