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-10.0.0.20260917GHC2024

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

datadata JSOptions

Options obtained from pragmas in JS files

Constructors

Instances4Eq, Ord, Semigroup, Binary

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

Orphan instances

21 instances