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

GHC 10.0.0.20260917 · lts/ghc-10.0.x · fc4e598 · 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.