| Copyright | (c) The University of Glasgow 2001 |
|---|---|
| License | BSD-style (see the file LICENSE) |
| Maintainer | Jeffrey Young <[email protected]> Luite Stegeman <[email protected]> Sylvain Henry <[email protected]> Josh Meredith <[email protected]> |
| Stability | experimental |
| Safe Haskell | None |
| Language | GHC2021 |
GHC.StgToJS.Apply
Description
Module that deals with expression application in JavaScript. In some cases we rely on pre-generated functions that are bundled with the RTS (see rtsApply).
Synopsis
- genApp :: HasDebugCallStack => ExprCtx -> Id -> [StgArg] -> G (JStgStat, ExprResult)
- rtsApply :: StgToJSConfig -> JSM JStgStat
Documentation
genApp :: HasDebugCallStack => ExprCtx -> Id -> [StgArg] -> G (JStgStat, ExprResult) Source #
Generate an application of some args to an Id.
The case where args is null is common as it's used to generate the evaluation code for an Id.