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

GHC 9.14.1 · lts/ghc-9.14.x · 45dd537 · 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.