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 10.0.0.20260917 · lts/ghc-10.0.x · 8174fa4 · 2026-10-11
Moduleghc-10.0.0.20260917GHC2024
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.
See Note [Finalizers via __cxa_atexit]