HORIZON HASKELLDocslts/ghc-9.14.xd82dee82026-10-12Search names, modules, packages, or :: a typeCtrl K

GHC 9.14.1 · lts/ghc-9.14.x · d82dee8 · 2026-10-12

Moduleghc-9.14.1GHC2021

GHC.Core.Stats

Functions to computing the statistics reflective of the "size" of a Core expression

  • 1 type
  • 4 values
  • Packageghc-9.14.1
  • Exports5
  • LanguageGHC2021
  • LicenceBSD-3-Clause
  • SourceStats.hs

Expression and bindings size

5 declarations
valueexprSize :: CoreExpr -> Int
#

A measure of the size of the expressions, strictly greater than 0 Counts *leaves*, not internal nodes. Types and coercions are not counted.