ghc-9.10.1: 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 HaskellNone
LanguageGHC2021

GHC.StgToJS.Linker.Utils

Description

Various utilies used in the JS Linker

Synopsis

Documentation

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