Foreign.Lua

data Lua a

luaState

runLuaWith

liftIO

Receiving values from Lua stack (Lua → Haskell)

class FromLuaStack a

peekEither

toList

pairsFromTable

Pushing values to Lua stack (Haskell → Lua)

class ToLuaStack a

pushList

Calling Functions

type PreCFunction

type HaskellFunction

class ToHaskellFunction a

toHaskellFunction

callFunc

newCFunction

freeCFunction

pushHaskellFunction

registerHaskellFunction

Utility functions

runLua

runLuaEither

getglobal'

setglobal'

API

Error handling in hslua

data LuaException

catchLuaError

throwLuaError

tryLua