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

Modulehslua-2.3.1Haskell2010

HsLua.Util

HsLua utility functions.

  • 2 values
  • Packagehslua-2.3.1
  • 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.