ddc-core-simpl-0.3.2.1: Disciplined Disciple Compiler code transformations.

Safe HaskellNone

DDC.Core.Transform.Eta

Synopsis

Documentation

data Config Source

Constructors

Config 

Fields

configExpand :: Bool
 

Instances

configZero :: ConfigSource

Empty eta configuration with all flags set to False.

data Info Source

Constructors

Info 

Fields

infoExpandedXLAMs :: Int

Number of level-1 lambdas added.

infoExpandedXLams :: Int

Number of level-0 lambdas added.

etaModule :: (Ord n, Show n, Pretty n, Show a) => Config -> Profile n -> Module a n -> TransformResult (Module a n)Source

Eta-transform expressions in a module.

etaXSource

Arguments

:: (Ord n, Show n, Show a, Pretty n) 
=> Config

Eta-transform config.

-> Profile n

Language profile.

-> KindEnv n

Kind environment.

-> TypeEnv n

Type environment.

-> Exp a n

Expression to transform.

-> TransformResult (Exp a n) 

Eta-transform an expression.