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-9.10.3GHC2021

GHC.Core.LateCC.Utils

  • 3 values
  • Packageghc-9.10.3
  • Exports3
  • LanguageGHC2021
  • LicenceBSD-3-Clause
  • SourceUtils.hs

Inserting cost centres

1 declaration

Helpers for defining insertion methods

valueinsertCC
  1. :: FastString

    Name of the cost centre to insert

  2. -> SrcSpan

    Source location to associate with the cost centre

  3. -> CoreExpr

    Expression to wrap in the cost centre

  4. -> LateCCM s CoreExpr
#

Insert a cost centre with the specified name and source span on the given expression. The inserted cost centre will be appropriately tracked in the late cost centre state.