HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

Moduleghc-exactprint-1.10.0.0Haskell2010

Language.Haskell.GHC.ExactPrint.Lookup

  • 2 types
  • 1 value
datadata AnnKeywordId
#

Exact print annotations exist so that tools can perform source to source conversions of Haskell code. They are used to keep track of the various syntactic keywords that are not otherwise captured in the AST.

The wiki page describing this feature is https://gitlab.haskell.org/ghc/ghc/wikis/api-annotations https://gitlab.haskell.org/ghc/ghc/-/wikis/implementing-trees-that-grow/in-tree-api-annotations

Note: in general the names of these are taken from the corresponding token, unless otherwise noted See Note [exact print annotations] above for details of the usage

Constructors

Instances6Eq, Data, Ord, Show, NoAnn, Outputable
datadata Comment
#

A Haskell comment. The AnnKeywordId is present if it has been converted from an AnnKeywordId because the annotation must be interleaved into the stream and does not have a well-defined position

Constructors

Instances5Eq, Data, Ord, Show, Outputable
  • Eq CommentDefined in ghc-exactprint-1.10.0.0 · Language.Haskell.GHC.ExactPrint.Types
  • Data CommentDefined in ghc-exactprint-1.10.0.0 · Language.Haskell.GHC.ExactPrint.Types
  • Ord CommentDefined in ghc-exactprint-1.10.0.0 · Language.Haskell.GHC.ExactPrint.Types
  • Show CommentDefined in ghc-exactprint-1.10.0.0 · Language.Haskell.GHC.ExactPrint.Types
  • Outputable CommentDefined in ghc-exactprint-1.10.0.0 · Language.Haskell.GHC.ExactPrint.Types