HORIZON HASKELLDocslts/ghc-10.0.x8fef28d2026-11-02Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8fef28d · 2026-11-02

Modulehslua-2.5.0Haskell2010

HsLua.Util

HsLua utility functions.

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