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

Modulelua-2.3.2Haskell2010

Lua.Userdata

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

  • 4 values
  • Packagelua-2.3.2
  • 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.