Copyright | © 2007–2012 Gracjan Polak 2012–2016 Ömer Sinan Ağacan 2017 Albert Krewinkel |
---|---|
License | MIT |
Maintainer | Albert Krewinkel <tarleb+hslua@zeitkraut.de> |
Stability | beta |
Portability | FlexibleInstances, ScopedTypeVariables |
Safe Haskell | None |
Language | Haskell98 |
Foreign.Lua.Types.ToLuaStack
Description
Sending haskell objects to the lua stack.
- class ToLuaStack a where
- pushList :: ToLuaStack a => [a] -> Lua ()
Documentation
class ToLuaStack a where Source #
A value that can be pushed to the Lua stack.
Minimal complete definition
Methods
Pushes a value onto Lua stack, casting it into meaningfully nearest Lua type.
Instances
pushList :: ToLuaStack a => [a] -> Lua () Source #
Push list as numerically indexed table.