ghc-lib-parser-8.10.2.20200916: The GHC API, decoupled from GHC versions
CoreStats
Contents
Description
Functions to computing the statistics reflective of the "size" of a Core expression
coreBindsSize :: [CoreBind] -> Int Source #
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
Fields
Defined in CoreStats
Methods
ppr :: CoreStats -> SDoc Source #
pprPrec :: Rational -> CoreStats -> SDoc Source #
coreBindsStats :: [CoreBind] -> CoreStats Source #
exprStats :: CoreExpr -> CoreStats Source #