HORIZON HASKELLDocslts/ghc-9.14.x6d5fdfd2026-10-12Search packagesCtrl K
Theme: |

GHC 9.14.1 · lts/ghc-9.14.x · 6d5fdfd · 2026-10-12

Moduleghc-9.14.1GHC2021

GHC.StgToJS.Object

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

Contents
  1. JS object
  2. HS object
Synopsis
  • Packageghc-9.14.1
  • Exports29
  • LanguageGHC2021
  • LicenceBSD-3-Clause
  • SourceObject.hs
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

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