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-2.5.0Haskell2010

HsLua.Util

HsLua utility functions.

  • 2 values
  • Packagehslua-2.5.0
  • Exports2
  • LanguageHaskell2010
  • LicenceMIT
  • SourceUtil.hs
valuegetglobal' :: LuaError e => Name -> LuaE e ()
#

Like getglobal, but knows about packages and nested tables. E.g.

getglobal' "math.sin"

will return the function sin in package math.

valuesetglobal' :: LuaError e => Name -> LuaE e ()
#

Like setglobal, but knows about packages and nested tables. E.g.

pushstring "0.9.4"
setglobal' "mypackage.version"

All tables and fields, except for the last field, must exist.