HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

Modulelua-2.3.2Haskell2010

Lua.Ersatz.Auxiliary

Raw bindings to ersatz functions of the auxiliary library.

  • 3 values
  • Packagelua-2.3.2
  • Exports3
  • LanguageHaskell2010
  • LicenceMIT
  • SourceAuxiliary.hs

Auxiliary Library

3 declarations
valuehsluaL_requiref
  1. :: State
  2. -> Ptr CChar

    modname

  3. -> CFunction

    openf

  4. -> LuaBool

    glb

  5. -> Ptr StatusCode
  6. -> IO ()
#

If modname is not already present in package.loaded. calls function openf with string modname as an argument and sets the call result in package.loaded[modname], as if that function has been called through require.

If glb is true, also stores the module into global modname.

Leaves a copy of the module on the stack.