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

Modulelua-2.3.4Haskell2010

Lua.Userdata

Bindings to HsLua-specific functions used to push Haskell values as userdata.

  • 4 values
  • Packagelua-2.3.4
  • Exports4
  • LanguageHaskell2010
  • LicenceMIT
  • SourceUserdata.hs
valuehslua_newhsuserdatauv
  1. :: State
  2. -> a

    value to be wrapped

  3. -> CInt

    nuvalue

  4. -> IO ()
#

Creates a new userdata wrapping the given Haskell object, with nuvalue associated Lua values (uservalues).

valuehslua_newudmetatable
  1. :: State

    Lua state

  2. -> CString

    Userdata name (__name)

  3. -> IO LuaBool

    True iff new metatable was created.

#

Creates and registers a new metatable for a userdata-wrapped Haskell value; checks whether a metatable of that name has been registered yet and uses the registered table if possible.