Function to push a value to Lua's stack.
Modulehslua-marshalling-2.3.1Haskell2010
HsLua.Marshalling.Push
Functions which marshal and push Haskell values onto Lua's stack.
- 1 type
- 16 values
- Packagehslua-marshalling-2.3.1
- Exports17
- LanguageHaskell2010
- LicenceMIT
- SourcePush.hs
Primitives
3 declarationsPushes a Bool as a Lua boolean.
Pushes an Integer to the Lua stack. Values representable as Lua
integers are pushed as such; bigger integers are represented using
their string representation.
Push a floating point number to the Lua stack. Uses a string representation for all types which do not match the float properties of the Number type.
Strings
5 declarationsPushes a ByteString as a raw string.
Pushes a lazy ByteString as a raw string.
Pushes a String as a UTF-8 encoded Lua string.
Pushes a Text value as a UTF-8 encoded string.
Pushes a Name as a UTF-8 encoded Lua string.
Collections
5 declarationsPush list as numerically indexed table.
Push non-empty list as numerically indexed table.
Push list of pairs as default key-value Lua table.
Push Map as default key-value Lua table.
Push a Set as idiomatic Lua set, i.e., as a table with the set
elements as keys and true as values.
Combinators
3 declarationsPushes a pair of values as a two element list.
Pushes a value triple as a three element list.
Pushes an object as a table, defined by a list of field-names/push-function pairs.