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 | ForeignFunctionInterface |
Safe Haskell | None |
Language | Haskell98 |
Haskell bindings to lua C API functions.
- lua_newstate :: FunPtr LuaAlloc -> Ptr () -> IO LuaState
- lua_close :: LuaState -> IO ()
- lua_newthread :: LuaState -> IO LuaState
- lua_atpanic :: LuaState -> CFunction -> IO CFunction
- lua_gettop :: LuaState -> IO CInt
- lua_settop :: LuaState -> CInt -> IO ()
- lua_pushvalue :: LuaState -> CInt -> IO ()
- lua_rotate :: LuaState -> CInt -> CInt -> IO ()
- lua_copy :: LuaState -> CInt -> CInt -> IO ()
- lua_checkstack :: LuaState -> CInt -> IO CInt
- lua_xmove :: LuaState -> LuaState -> CInt -> IO ()
- lua_isnumber :: LuaState -> CInt -> IO CInt
- lua_isstring :: LuaState -> CInt -> IO CInt
- lua_iscfunction :: LuaState -> CInt -> IO CInt
- lua_isuserdata :: LuaState -> CInt -> IO CInt
- lua_type :: LuaState -> CInt -> IO CInt
- lua_typename :: LuaState -> CInt -> IO (Ptr CChar)
- lua_compare :: LuaState -> CInt -> CInt -> CInt -> IO CInt
- lua_rawequal :: LuaState -> CInt -> CInt -> IO CInt
- lua_toboolean :: LuaState -> CInt -> IO CInt
- lua_tocfunction :: LuaState -> CInt -> IO CFunction
- lua_tointegerx :: LuaState -> CInt -> CInt -> IO LuaInteger
- lua_tonumberx :: LuaState -> CInt -> CInt -> IO LuaNumber
- lua_tolstring :: LuaState -> CInt -> Ptr CSize -> IO (Ptr CChar)
- lua_topointer :: LuaState -> CInt -> IO (Ptr ())
- lua_tothread :: LuaState -> CInt -> IO LuaState
- lua_touserdata :: LuaState -> CInt -> IO (Ptr a)
- lua_rawlen :: LuaState -> CInt -> IO CSize
- lua_pushnil :: LuaState -> IO ()
- lua_pushnumber :: LuaState -> LuaNumber -> IO ()
- lua_pushinteger :: LuaState -> LuaInteger -> IO ()
- lua_pushlstring :: LuaState -> Ptr CChar -> CSize -> IO ()
- lua_pushstring :: LuaState -> Ptr CChar -> IO ()
- lua_pushcclosure :: LuaState -> CFunction -> CInt -> IO ()
- lua_pushboolean :: LuaState -> CInt -> IO ()
- lua_pushlightuserdata :: LuaState -> Ptr a -> IO ()
- lua_pushthread :: LuaState -> IO CInt
- lua_gettable :: LuaState -> CInt -> IO CInt
- lua_getfield :: LuaState -> CInt -> Ptr CChar -> IO ()
- lua_rawget :: LuaState -> CInt -> IO ()
- lua_rawgeti :: LuaState -> CInt -> CInt -> IO ()
- lua_createtable :: LuaState -> CInt -> CInt -> IO ()
- lua_newuserdata :: LuaState -> CInt -> IO (Ptr ())
- lua_getmetatable :: LuaState -> CInt -> IO CInt
- lua_getglobal :: LuaState -> Ptr CChar -> IO ()
- lua_settable :: LuaState -> CInt -> IO ()
- lua_setfield :: LuaState -> CInt -> Ptr CChar -> IO ()
- lua_rawset :: LuaState -> CInt -> IO ()
- lua_rawseti :: LuaState -> CInt -> CInt -> IO ()
- lua_setmetatable :: LuaState -> CInt -> IO ()
- lua_setglobal :: LuaState -> Ptr CChar -> IO ()
- lua_callk :: LuaState -> CInt -> CInt -> CInt -> Ptr () -> IO ()
- lua_pcallk :: LuaState -> CInt -> CInt -> CInt -> CInt -> Ptr () -> IO CInt
- lua_load :: LuaState -> FunPtr LuaReader -> Ptr () -> Ptr CChar -> IO CInt
- lua_dump :: LuaState -> FunPtr LuaWriter -> Ptr () -> IO ()
- lua_yieldk :: LuaState -> CInt -> CInt -> Ptr () -> IO CInt
- lua_resume :: LuaState -> CInt -> CInt -> IO CInt
- lua_status :: LuaState -> IO CInt
- lua_gc :: LuaState -> CInt -> CInt -> IO CInt
- lua_error :: LuaState -> IO CInt
- lua_next :: LuaState -> CInt -> IO CInt
- lua_concat :: LuaState -> CInt -> IO ()
- luaL_openlibs :: LuaState -> IO ()
- lua_open_base :: LuaState -> IO CInt
- lua_open_base_ptr :: FunPtr (LuaState -> IO CInt)
- lua_open_table :: LuaState -> IO CInt
- lua_open_table_ptr :: FunPtr (LuaState -> IO CInt)
- lua_open_io :: LuaState -> IO CInt
- lua_open_io_ptr :: FunPtr (LuaState -> IO CInt)
- lua_open_os :: LuaState -> IO CInt
- lua_open_os_ptr :: FunPtr (LuaState -> IO CInt)
- lua_open_string :: LuaState -> IO CInt
- lua_open_string_ptr :: FunPtr (LuaState -> IO CInt)
- lua_open_math :: LuaState -> IO CInt
- lua_open_math_ptr :: FunPtr (LuaState -> IO CInt)
- lua_open_debug :: LuaState -> IO CInt
- lua_open_debug_ptr :: FunPtr (LuaState -> IO CInt)
- lua_open_package :: LuaState -> IO CInt
- lua_open_package_ptr :: FunPtr (LuaState -> IO CInt)
- luaL_newstate :: IO LuaState
- luaL_newmetatable :: LuaState -> Ptr CChar -> IO CInt
- luaL_argerror :: LuaState -> CInt -> Ptr CChar -> IO CInt
- luaL_ref :: LuaState -> CInt -> IO CInt
- luaL_unref :: LuaState -> CInt -> CInt -> IO ()
- luaL_loadfilex :: LuaState -> Ptr CChar -> Ptr CChar -> IO CInt
- luaL_loadstring :: LuaState -> Ptr CChar -> IO CInt
State manipulation
lua_newstate :: FunPtr LuaAlloc -> Ptr () -> IO LuaState Source #
See lua_newstate
lua_newthread :: LuaState -> IO LuaState Source #
See lua_newthread
lua_atpanic :: LuaState -> CFunction -> IO CFunction Source #
See lua_atpanic
Basic stack manipulation
lua_gettop :: LuaState -> IO CInt Source #
See lua_gettop
lua_settop :: LuaState -> CInt -> IO () Source #
See lua_settop
lua_pushvalue :: LuaState -> CInt -> IO () Source #
See lua_pushvalue
lua_rotate :: LuaState -> CInt -> CInt -> IO () Source #
See lua_rotate
lua_checkstack :: LuaState -> CInt -> IO CInt Source #
See lua_checkstack
Stack access functions
lua_isnumber :: LuaState -> CInt -> IO CInt Source #
See lua_isnumber
lua_isstring :: LuaState -> CInt -> IO CInt Source #
See lua_isstring
lua_iscfunction :: LuaState -> CInt -> IO CInt Source #
See lua_iscfunction
lua_isuserdata :: LuaState -> CInt -> IO CInt Source #
See lua_isuserdata
lua_typename :: LuaState -> CInt -> IO (Ptr CChar) Source #
See lua_typename
lua_compare :: LuaState -> CInt -> CInt -> CInt -> IO CInt Source #
See lua_compare
lua_rawequal :: LuaState -> CInt -> CInt -> IO CInt Source #
See lua_rawequal
lua_toboolean :: LuaState -> CInt -> IO CInt Source #
See lua_toboolean
lua_tocfunction :: LuaState -> CInt -> IO CFunction Source #
See lua_tocfunction
lua_tointegerx :: LuaState -> CInt -> CInt -> IO LuaInteger Source #
See lua_tointegerx
lua_tonumberx :: LuaState -> CInt -> CInt -> IO LuaNumber Source #
See lua_tonumberx
lua_topointer :: LuaState -> CInt -> IO (Ptr ()) Source #
See lua_topointer
lua_tothread :: LuaState -> CInt -> IO LuaState Source #
See lua_tothread
lua_touserdata :: LuaState -> CInt -> IO (Ptr a) Source #
See lua_touserdata
lua_rawlen :: LuaState -> CInt -> IO CSize Source #
See lua_rawlen
Push functions
lua_pushnil :: LuaState -> IO () Source #
See lua_pushnil
lua_pushnumber :: LuaState -> LuaNumber -> IO () Source #
See lua_pushnumber
lua_pushinteger :: LuaState -> LuaInteger -> IO () Source #
See lua_pushinteger
lua_pushlstring :: LuaState -> Ptr CChar -> CSize -> IO () Source #
See lua_pushlstring
lua_pushstring :: LuaState -> Ptr CChar -> IO () Source #
See lua_pushstring
lua_pushcclosure :: LuaState -> CFunction -> CInt -> IO () Source #
See lua_pushcclosure
lua_pushboolean :: LuaState -> CInt -> IO () Source #
See lua_pushboolean
lua_pushthread :: LuaState -> IO CInt Source #
See lua_pushthread
Get functions
lua_gettable :: LuaState -> CInt -> IO CInt Source #
See lua_gettable
lua_getfield :: LuaState -> CInt -> Ptr CChar -> IO () Source #
See lua_getfield
lua_rawget :: LuaState -> CInt -> IO () Source #
See lua_rawget
lua_rawgeti :: LuaState -> CInt -> CInt -> IO () Source #
See lua_rawgeti
lua_createtable :: LuaState -> CInt -> CInt -> IO () Source #
See lua_createtable
lua_newuserdata :: LuaState -> CInt -> IO (Ptr ()) Source #
See lua_newuserdata
lua_getmetatable :: LuaState -> CInt -> IO CInt Source #
See lua_getmetatable
lua_getglobal :: LuaState -> Ptr CChar -> IO () Source #
See lua_getglobal
Set functions
lua_settable :: LuaState -> CInt -> IO () Source #
See lua_settable
lua_setfield :: LuaState -> CInt -> Ptr CChar -> IO () Source #
See lua_setfield
lua_rawset :: LuaState -> CInt -> IO () Source #
See lua_rawset
lua_rawseti :: LuaState -> CInt -> CInt -> IO () Source #
See lua_rawseti
lua_setmetatable :: LuaState -> CInt -> IO () Source #
See lua_setmetatable
lua_setglobal :: LuaState -> Ptr CChar -> IO () Source #
See lua_setglobal
load
and call
functions (load and run Lua code)
Coroutine functions
lua_yieldk :: LuaState -> CInt -> CInt -> Ptr () -> IO CInt Source #
See lua_yieldk
lua_resume :: LuaState -> CInt -> CInt -> IO CInt Source #
See lua_resume
lua_status :: LuaState -> IO CInt Source #
See lua_status
Garbage-collection functions and options
Miscellaneous functions
lua_concat :: LuaState -> CInt -> IO () Source #
See lua_concat
luaL_openlibs :: LuaState -> IO () Source #
See luaL_openlibs
lua_open_base_ptr :: FunPtr (LuaState -> IO CInt) Source #
Function pointer to lua_open_base
lua_open_table_ptr :: FunPtr (LuaState -> IO CInt) Source #
Function pointer to lua_open_table
lua_open_io_ptr :: FunPtr (LuaState -> IO CInt) Source #
Function pointer to lua_open_io
lua_open_os_ptr :: FunPtr (LuaState -> IO CInt) Source #
Function pointer to lua_open_os
lua_open_string_ptr :: FunPtr (LuaState -> IO CInt) Source #
Function pointer to lua_open_string
lua_open_math_ptr :: FunPtr (LuaState -> IO CInt) Source #
Function pointer to lua_open_math
lua_open_debug_ptr :: FunPtr (LuaState -> IO CInt) Source #
Function pointer to lua_open_debug
lua_open_package_ptr :: FunPtr (LuaState -> IO CInt) Source #
Function pointer to lua_open_package
The Auxiliary Library
luaL_newstate :: IO LuaState Source #
See luaL_newstate
luaL_argerror :: LuaState -> CInt -> Ptr CChar -> IO CInt Source #
See luaL_argerror
luaL_unref :: LuaState -> CInt -> CInt -> IO () Source #
See luaL_unref
luaL_loadstring :: LuaState -> Ptr CChar -> IO CInt Source #
See luaL_loadstring