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-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.