Foreign.Lua

Core

Receiving values from Lua stack (Lua → Haskell)

class Peekable a

peekEither

peekList

peekKeyValuePairs

peekRead

peekAny

Pushing values to Lua stack (Haskell → Lua)

class Pushable a

pushList

pushAny

Calling Functions

type PreCFunction

type HaskellFunction

class ToHaskellFunction a

toHaskellFunction

callFunc

newCFunction

freeCFunction

pushHaskellFunction

registerHaskellFunction

Utility functions and types

run

runEither

getglobal'

setglobal'

raiseError

data Optional a

retrieving values

popValue