HORIZON HASKELLDocslts/ghc-10.0.x8174fa42026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8174fa4 · 2026-10-11

Moduleghc-10.0.0.20260917GHC2024

GHC.Types.ForeignStubs

Foreign export stubs

  • 3 types
  • 3 values
datadata ForeignStubs
#

Foreign export stubs

Constructors

  • NoStubs

    We don't have any stubs

  • ForeignStubs CHeader CStub

    There are some stubs. Parameters:

    1) Header file prototypes for "foreign exported" functions

    2) C stubs to use when calling "foreign exported" functions

valueinitializerCStub :: Platform -> CLabel -> SDoc -> SDoc -> CStub
#

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.

valuefinalizerCStub :: Platform -> CLabel -> SDoc -> SDoc -> CStub
#

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]