hslua-0.4.1: A Lua language interpreter embedding in Haskell

Safe HaskellSafe
LanguageHaskell98

Scripting.Lua.Raw

Contents

Synopsis

Types

newtype LuaState #

Synonym for lua_State *. See lua_State in Lua Reference Manual.

Constructors

LuaState (Ptr ()) 

type LuaAlloc = Ptr () -> Ptr () -> CSize -> CSize -> IO (Ptr ()) #

Synonym for lua_Alloc. See lua_Alloc in Lua Reference Manual.

type LuaReader = Ptr () -> Ptr () -> Ptr CSize -> IO (Ptr CChar) #

Synonym for lua_Reader. See lua_Reader in Lua Reference Manual.

type LuaWriter = LuaState -> Ptr CChar -> CSize -> Ptr () -> IO CInt #

Synonym for lua_Writer. See lua_Writer in Lua Reference Manual.

type LuaCFunction = LuaState -> IO CInt #

Synonym for lua_CFunction. See lua_CFunction in Lua Reference Manual.

type LuaInteger = Int64 #

Synonym for lua_Integer. See lua_Integer in Lua Reference Manual.

type LuaNumber = Double #

Synonym for lua_Number. See lua_Number in Lua Reference Manual.

State manipulation

Basic stack manipulation

Stack access functions

Push functions

Get functions

Get functions

load and call functions (load and run Lua code)

c_lua_call :: LuaState -> CInt -> CInt -> IO () #

Coroutine functions

Garbage-collection functions and options

Miscellaneous functions

The Auxiliary Library