hslua-list-1.1.0: Opinionated, but extensible Lua list type.
Copyright© 2021-2022 Albert Krewinkel
LicenseMIT
MaintainerAlbert Krewinkel <tarleb+pandoc@moltkeplatz.de>
Safe HaskellSafe-Inferred
LanguageHaskell2010

HsLua.List

Description

Lua lists with additional methods.

Synopsis

Documentation

luaopen_list_ptr :: CFunction Source #

Pointer to the function that opens the List module and pushes it to the stack.

pushListModule :: LuaError e => LuaE e () Source #

Opens the List module and pushes it to the stack.

newListMetatable Source #

Arguments

:: Name 
-> LuaE e ()

setup

-> LuaE e () 

Pushes the metatable of the given List type, creating it if necessary. The setup operation is run when the metatable did not exists, was created, and is then at the top of the stack. The operation may modify the table but must be balanced, and must leave the stack as it found it.