hslua-0.4.1: A Lua language interpreter embedding in Haskell

Safe HaskellSafe-Inferred
LanguageHaskell98

Scripting.Lua.Raw

Contents

Synopsis

Types

newtype LuaState Source

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

Constructors

LuaState (Ptr ()) 

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

Synonym for lua_Alloc. See lua_Alloc in Lua Reference Manual.

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

Synonym for lua_Reader. See lua_Reader in Lua Reference Manual.

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

Synonym for lua_Writer. See lua_Writer in Lua Reference Manual.

type LuaCFunction = LuaState -> IO CInt Source

Synonym for lua_CFunction. See lua_CFunction in Lua Reference Manual.

type LuaInteger = Int64 Source

Synonym for lua_Integer. See lua_Integer in Lua Reference Manual.

type LuaNumber = Double Source

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)

Coroutine functions

Garbage-collection functions and options

Miscellaneous functions

The Auxiliary Library