ghc-9.6.3: The GHC API
Copyright(c) The University of Glasgow 2001
LicenseBSD-style (see the file LICENSE)
MaintainerJeffrey Young <jeffrey.young@iohk.io> Luite Stegeman <luite.stegeman@iohk.io> Sylvain Henry <sylvain.henry@iohk.io> Josh Meredith <josh.meredith@iohk.io>
Stabilityexperimental
Safe HaskellSafe-Inferred
LanguageHaskell2010

GHC.StgToJS.Linker.Types

Description

 
Synopsis

Documentation

newGhcjsEnv :: IO GhcjsEnv Source #

return a fresh GhcjsEnv

generateAllJs :: JSLinkConfig -> Bool Source #

we generate a runnable all.js only if we link a complete application, no incremental linking and no skipped parts

data LinkedObj Source #

An object file that's either already in memory (with name) or on disk

Constructors

ObjFile FilePath

load from this file

ObjLoaded String Object

already loaded: description and payload

Instances

Instances details
Outputable LinkedObj Source # 
Instance details

Defined in GHC.StgToJS.Linker.Types

Methods

ppr :: LinkedObj -> SDoc Source #

type LinkableUnit = (Module, Int) Source #

A LinkableUnit is a pair of a module and the index of the block in the object file