| Copyright | (c) The University of Glasgow 2001 | 
|---|---|
| License | BSD-style (see the file LICENSE) | 
| Maintainer | Jeffrey Young <jeffrey.young@iohk.io> Luite Stegeman <luite.stegeman@iohk.io> Sylvain Henry <sylvain.henry@iohk.io> Josh Meredith <josh.meredith@iohk.io> | 
| Stability | experimental Code generation of application arguments | 
| Safe Haskell | None | 
| Language | Haskell2010 | 
GHC.StgToJS.Arg
Description
Synopsis
- genArg :: HasDebugCallStack => StgArg -> G [JExpr]
 - genIdArg :: HasDebugCallStack => Id -> G [JExpr]
 - genIdArgI :: HasDebugCallStack => Id -> G [Ident]
 - genIdStackArgI :: HasDebugCallStack => Id -> G [(Ident, StackSlot)]
 - allocConStatic :: HasDebugCallStack => Ident -> CostCentreStack -> DataCon -> [StgArg] -> G ()
 - allocUnboxedConStatic :: DataCon -> [StaticArg] -> StaticArg
 - allocateStaticList :: [StgArg] -> StgArg -> G StaticVal
 - jsStaticArg :: StaticArg -> JExpr
 - jsStaticArgs :: [StaticArg] -> JExpr
 
Documentation
genIdStackArgI :: HasDebugCallStack => Id -> G [(Ident, StackSlot)] Source #
Generate IDs for stack arguments. See loadRetArgs for use case
allocConStatic :: HasDebugCallStack => Ident -> CostCentreStack -> DataCon -> [StgArg] -> G () Source #
Allocate Static Constructors
jsStaticArg :: StaticArg -> JExpr Source #
Generate JS code corresponding to a static arg
jsStaticArgs :: [StaticArg] -> JExpr Source #
Generate JS code corresponding to a list of static args