ghc-9.6.0.20230111: The GHC API
Copyright(c) The University of Glasgow 2001
LicenseBSD-style (see the file LICENSE)
MaintainerJeffrey Young <jeffrey.young@iohk.io> Luite Stegeman <luite.stegeman@iohk.io> Sylvain Henry <sylvain.henry@iohk.io> Josh Meredith <josh.meredith@iohk.io>
Stabilityexperimental
Safe HaskellSafe-Inferred
LanguageHaskell2010

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

Documentation

genApp :: HasDebugCallStack => ExprCtx -> Id -> [StgArg] -> G (JStat, 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.

rtsApply :: StgToJSConfig -> JStat Source #

Pre-generated functions for fast Apply. These are bundled with the RTS.