HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

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.