HORIZON HASKELLDocslts/ghc-10.0.xfc4e5982026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 10.0.0.20260917 · lts/ghc-10.0.x · fc4e598 · 2026-10-11

Moduleghc-10.0.0.20260917GHC2024

GHC.StgToJS.Object

Serialization/deserialization of binary .o files for the JavaScript backend

  • 12 types
  • 17 values
datadata ObjectKind
#

Different kinds of object (.o) supported by the JS backend

Constructors

  • ObjJs

    JavaScript source embedded in a .o

  • ObjHs

    JS backend object for Haskell code

  • ObjCc

    Wasm module object as produced by emcc

Instances3Eq, Ord, Show
  • Eq ObjectKindDefined in ghc-10.0.0.20260917 · GHC.StgToJS.Object
  • Ord ObjectKindDefined in ghc-10.0.0.20260917 · GHC.StgToJS.Object
  • Show ObjectKindDefined in ghc-10.0.0.20260917 · GHC.StgToJS.Object

JS object

7 declarations
datadata JSOptions
#

Options obtained from pragmas in JS files

Constructors

Instances4Eq, Ord, Semigroup, Binary

HS object

19 declarations
valueisGlobalBlock :: BlockId -> Bool
#

we use the convention that the first block (0) is a module-global block that's always included when something from the module is loaded. everything in a module implicitly depends on the global block. The global block itself can't have dependencies

datadata BlockInfo
#

Information about blocks (linkable units)

Constructors

Instances2Outputable, Binary

Orphan instances

21 instances