ghc-8.0.2: The GHC API

Safe HaskellNone
LanguageHaskell2010

CoreStats

Contents

Description

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

Synopsis

Expression and bindings size

exprSize :: CoreExpr -> Int #

A measure of the size of the expressions, strictly greater than 0 It also forces the expression pretty drastically as a side effect Counts *leaves*, not internal nodes. Types and coercions are not counted.

data CoreStats #

Constructors

CS 

Fields