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

Modulehscolour-1.25Haskell98

Language.Haskell.HsColour.Anchors

  • 1 value
  • Packagehscolour-1.25
  • Exports1
  • LanguageHaskell98
  • LicenceLicenseRef-LGPL
  • SourceAnchors.hs
valueinsertAnchors
  1. :: [(TokenType, String)]
  2. -> [Either Anchor (TokenType, String)]
#

insertAnchors places an anchor marker in the token stream before the first defining occurrence of any identifier. Here, before means immediately preceding its type signature, or preceding a (haddock) comment that comes immediately before the type signature, or failing either of those, before the first equation.