GHC.HsToCore.Foreign.JavaScript

ghc-9.14.0.20251028: The GHC API

Safe Haskell | None
Language | GHC2021

GHC.HsToCore.Foreign.JavaScript

Description

Handling of JavaScript foreign imports/exports

Synopsis

- dsJsImport :: Id -> Coercion -> CImportSpec -> CCallConv -> Safety -> Maybe Header -> DsM ([Binding], CHeader, CStub)
- dsJsFExport :: Id -> Coercion -> CLabelString -> CCallConv -> Bool -> DsM (CHeader, CStub, String)
- dsJsFExportDynamic :: Id -> Coercion -> CCallConv -> DsM ([Binding], CHeader, CStub)

# Documentation

dsJsImport :: Id -> Coercion -> CImportSpec -> CCallConv -> Safety -> Maybe Header -> DsM ([Binding], CHeader, CStub) Source #

Desugaring of JavaScript foreign imports

dsJsFExport :: Id -> Coercion -> CLabelString -> CCallConv -> Bool -> DsM (CHeader, CStub, String) Source #

dsJsFExportDynamic :: Id -> Coercion -> CCallConv -> DsM ([Binding], CHeader, CStub) Source #