HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Moduleghc-9.10.3GHC2021

GHC.Types.ForeignStubs

Foreign export stubs

  • 3 types
  • 3 values
  • Packageghc-9.10.3
  • Exports6
  • LanguageGHC2021
  • LicenceBSD-3-Clause
  • SourceForeignStubs.hs
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.