hslua-objectorientation-2.4.0: Object orientation tools for HsLua
Safe HaskellNone
LanguageHaskell2010

HsLua.ObjectOrientation.ListType

Synopsis

Documentation

type UDTypeWithList e fn a itemtype = UDTypeGeneric e fn a Source #

Deprecated: Use UDTypeGeneric instead

Userdata type that (also) behaves like a list.

type ListSpec e a itemtype = ((Pusher e itemtype, a -> [itemtype]), (Peeker e itemtype, a -> [itemtype] -> a)) Source #

Pair of pairs, describing how a type can be used as a Lua list. The first pair describes how to push the list items, and how the list is extracted from the type; the second pair contains a method to retrieve list items, and defines how the list is used to create an updated value.

listExtension :: LuaError e => ListSpec e a itemtype -> UDTypeHooks e fn a Source #