Copyright | © 2017 Albert Krewinkel |
---|---|
License | MIT |
Maintainer | Albert Krewinkel <tarleb+hslua@zeitkraut.de> |
Stability | beta |
Portability | GeneralizedNewtypeDeriving |
Safe Haskell | None |
Language | Haskell98 |
Foreign.Lua.Types.Lua
Description
The core Lua types, including mappings of Lua types to Haskell.
Documentation
Lua computation
Instances
Monad Lua Source # | |
Functor Lua Source # | |
Applicative Lua Source # | |
MonadIO Lua Source # | |
Alternative Lua Source # | |
MonadThrow Lua Source # | |
MonadCatch Lua Source # | |
MonadMask Lua Source # | |
ToHaskellFunction HaskellFunction Source # | |
Defined in Foreign.Lua.FunctionCalling Methods toHsFun :: StackIndex -> HaskellFunction -> Lua NumResults Source # | |
MonadReader LuaState Lua Source # | |
FromLuaStack a => LuaCallFunc (Lua a) Source # | |
ToLuaStack a => ToHaskellFunction (Lua a) Source # | |
Defined in Foreign.Lua.FunctionCalling Methods toHsFun :: StackIndex -> Lua a -> Lua NumResults Source # |
runLuaWith :: LuaState -> Lua a -> IO a Source #
Run lua computation with custom lua state. Errors are left unhandled, the caller of this function is responsible to catch lua errors.