ghc-lib-parser-9.2.3.20220527: The GHC API, decoupled from GHC versions
Safe HaskellNone
LanguageHaskell2010

GHC.Core.Stats

Description

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

Synopsis

Expression and bindings size

exprSize :: CoreExpr -> Int Source #

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

data CoreStats Source #

Constructors

CS 

Fields

Instances

Instances details
Outputable CoreStats Source # 
Instance details

Defined in GHC.Core.Stats

Methods

ppr :: CoreStats -> SDoc Source #