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

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

Modulehslua-core-2.3.2.1Haskell2010

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.