ghc-lib-9.8.5.20250214: The GHC API, decoupled from GHC versions
Copyright(c) The University of Glasgow 2001
LicenseBSD-style (see the file LICENSE)
MaintainerJeffrey Young <[email protected]> Luite Stegeman <[email protected]> Sylvain Henry <[email protected]> Josh Meredith <[email protected]>
Stabilityexperimental
Safe HaskellIgnore
LanguageHaskell2010

GHC.StgToJS.Linker.Utils

Description

Various utilies used in the JS Linker

Synopsis

Documentation

getOptionsFromJsFile Source #

Arguments

:: FilePath

Input file

-> IO [JSOption]

Parsed options, if any.

Parse option pragma in JS file

data JSOption Source #

Constructors

CPP 

Instances

Instances details
Eq JSOption Source # 
Instance details

Defined in GHC.StgToJS.Linker.Utils

Ord JSOption Source # 
Instance details

Defined in GHC.StgToJS.Linker.Utils

jsExeFileName :: DynFlags -> FilePath Source #

Construct the Filename for the "binary" of Haskell code compiled to JavaScript.

getInstalledPackageLibDirs :: UnitState -> UnitId -> [ShortText] Source #

Retrieve library directories provided by the UnitId in UnitState

getInstalledPackageHsLibs :: UnitState -> UnitId -> [ShortText] Source #

Retrieve the names of the libraries provided by UnitId

commonCppDefs :: Bool -> ByteString Source #

CPP definitions that are inserted into every .pp file