hslua-0.6.0: A Lua language interpreter embedding in Haskell

Copyright© 2007–2012 Gracjan Polak
2012–2016 Ömer Sinan Ağacan
2017 Albert Krewinkel
LicenseMIT
MaintainerAlbert Krewinkel <tarleb+hslua@zeitkraut.de>
Stabilitybeta
PortabilityForeignFunctionInterface
Safe HaskellNone
LanguageHaskell98

Foreign.Lua.Api.RawBindings

Contents

Description

Haskell bindings to lua C API functions.

Synopsis

State manipulation

Basic stack manipulation

Stack access functions

Push functions

Get functions

Set functions

load and call functions (load and run Lua code)

lua_callk :: LuaState -> CInt -> CInt -> CInt -> Ptr () -> IO () Source #

Coroutine functions

Garbage-collection functions and options

Miscellaneous functions

lua_open_base :: LuaState -> IO CInt Source #

Opens the base library.

lua_open_table :: LuaState -> IO CInt Source #

Opens the table library.

lua_open_io :: LuaState -> IO CInt Source #

Opens the io library.

lua_open_os :: LuaState -> IO CInt Source #

Opens the os library.

lua_open_string :: LuaState -> IO CInt Source #

Opens the string library.

lua_open_math :: LuaState -> IO CInt Source #

Opens the math library.

lua_open_debug :: LuaState -> IO CInt Source #

Opens the debug library.

lua_open_package :: LuaState -> IO CInt Source #

Opens the package library.

The Auxiliary Library