ghc-7.0.3: The GHC API

Vectorise.Utils.Closure

Description

Utils concerning closure construction and application.

Synopsis

Documentation

mkClosureSource

Arguments

:: Type

Type of the argument.

-> Type

Type of the result.

-> Type

Type of the environment.

-> VExpr

The function to apply.

-> VExpr

The environment to use.

-> VM VExpr 

Make a closure.

mkClosureAppSource

Arguments

:: Type

Type of the argument.

-> Type

Type of the result.

-> VExpr

Closure to apply.

-> VExpr

Argument to use.

-> VM VExpr 

Make a closure application.

buildClosuresSource

Arguments

:: [TyVar] 
-> [VVar] 
-> [Type]

Type of the arguments.

-> Type

Type of result.

-> VM VExpr 
-> VM VExpr