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 | Ignore |
Language | Haskell2010 |
GHC.StgToJS.Rts.Types
Description
Types and utility functions used in the JS RTS.
Documentation
traceRts :: StgToJSConfig -> JExpr -> JStat Source #
Syntactic sugar, i.e., a Haskell function which generates useful JS code.
Given a JExpr
, ex
, inject a trace statement on ex
in the compiled JS
program
assertRts :: ToJExpr a => StgToJSConfig -> JExpr -> a -> JStat Source #
Syntactic sugar. Given a JExpr
, ex
which is assumed to be a predicate,
and a message m
, assert that 'not ex' is True, if not throw an exception in
JS land with message m
.
clTypeName :: JExpr -> JExpr Source #
Type name of the closure c