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

Modulehslua-core-2.3.2Haskell2010

HsLua.Core.Package

Utility functions for HsLua modules.

  • 2 values
valuerequirehs
  1. :: LuaError e
  2. => Name

    modname

  3. -> (Name -> LuaE e ())

    openf

  4. -> LuaE e ()
#

Load a module, defined by a Haskell action, under the given name.

Similar to luaL_requiref: 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.

Leaves a copy of the module on the stack.