HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Moduleghc-9.10.3GHC2021

GHC.StgToJS.Rts.Types

Types and utility functions used in the JS RTS.

  • 6 values
  • Packageghc-9.10.3
  • Exports6
  • LanguageGHC2021
  • LicenceBSD-3-Clause
  • SourceTypes.hs

Syntactic sugar, i.e., a Haskell function which generates useful JS code. Given a JStgExpr, ex, inject a trace statement on ex in the compiled JS program

valueassertRts :: ToJExpr a => StgToJSConfig -> JStgExpr -> a -> JStgStat
#

Syntactic sugar. Given a JStgExpr, 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.