HORIZON HASKELLDocslts/ghc-10.0.x77a86622026-10-31Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 77a8662 · 2026-10-31

Moduleghc-lib-parser-9.14.1.20251220GHC2021

GHC.StgToJS.Object

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

Contents
  1. JS object
  2. HS object
Synopsis
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-lib-parser-9.14.1.20251220 · GHC.StgToJS.Object
  • Ord ObjectKindDefined in ghc-lib-parser-9.14.1.20251220 · GHC.StgToJS.Object
  • Show ObjectKindDefined in ghc-lib-parser-9.14.1.20251220 · GHC.StgToJS.Object

JS object

datadata JSOptions

Options obtained from pragmas in JS files

Constructors

Instances4Eq, Ord, Semigroup, Binary
  • Eq JSOptionsDefined in ghc-lib-parser-9.14.1.20251220 · GHC.StgToJS.Object
  • Ord JSOptionsDefined in ghc-lib-parser-9.14.1.20251220 · GHC.StgToJS.Object
  • Semigroup JSOptionsDefined in ghc-lib-parser-9.14.1.20251220 · GHC.StgToJS.Object
  • Binary JSOptionsDefined in ghc-lib-parser-9.14.1.20251220 · GHC.StgToJS.Object

HS object

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
datadata ExportedFun

Exported Functions

Constructors

Instances4Eq, Ord, Outputable, Binary

Orphan instances

21 instances