| 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
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
| ToLuaStack Bool Source # | |
| ToLuaStack Int Source # | |
| ToLuaStack () Source # | |
| ToLuaStack ByteString Source # | |
| ToLuaStack Text Source # | |
| ToLuaStack LuaNumber Source # | |
| ToLuaStack LuaInteger Source # | |
| ToLuaStack CFunction Source # | |
| ToLuaStack [Char] Source # | |
| ToLuaStack a => ToLuaStack [a] Source # | |
| ToLuaStack (Ptr a) Source # | |
| (ToLuaStack a, ToLuaStack b) => ToLuaStack (Map a b) Source # | |