GHC.StgToJS.Literal

ghc-9.10.0.20240426: The GHC API

Safe Haskell | None
Language | GHC2021

GHC.StgToJS.Literal

Synopsis

- genLit :: HasDebugCallStack => Literal -> G [JStgExpr]
- genStaticLit :: Literal -> G [StaticLit]

# Documentation

genLit :: HasDebugCallStack => Literal -> G [JStgExpr] Source #

Generate JS expressions for a Literal

Literals represented with 2 values: * Addr# (Null and Strings): array and offset * 64-bit values: high 32-bit, low 32-bit * labels: call to h$mkFunctionPtr and 0, or function name and 0

genStaticLit :: Literal -> G [StaticLit] Source #

generate a literal for the static init tables