Foreign export stubs
Constructors
NoStubsWe don't have any stubs
ForeignStubs CHeader CStubThere are some stubs. Parameters:
1) Header file prototypes for "foreign exported" functions
2) C stubs to use when calling "foreign exported" functions
:: a typeCtrl KGHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05
Moduleghc-9.10.3GHC2021
Foreign export stubs
Foreign export stubs
NoStubsWe don't have any stubs
ForeignStubs CHeader CStubThere are some stubs. Parameters:
1) Header file prototypes for "foreign exported" functions
2) C stubs to use when calling "foreign exported" functions
CStubgetCStub :: SDocgetInitializers :: [CLabel]Initializers to be run at startup See Note [Initializers and finalizers in Cmm] in GHC.Cmm.InitFini.
getFinalizers :: [CLabel]Finalizers to be run at shutdown
initializerCStub fn_nm decls body is a CStub containing C initializer
function (e.g. an entry of the .init_array section) named
fn_nm with the given body and the given set of declarations.
finalizerCStub fn_nm decls body is a CStub containing C finalizer
function (e.g. an entry of the .fini_array section) named
fn_nm with the given body and the given set of declarations.