HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Modulelua-2.3.2Haskell2010

Lua.Ersatz

Ersatz functions for Lua API items which may, directly or indirectly, throw a Lua error.

  • 10 values
  • Packagelua-2.3.2
  • Exports10
  • LanguageHaskell2010
  • LicenceMIT
  • SourceErsatz.hs

Get functions (Lua -> stack)

2 declarations

Set functions (stack -> Lua)

2 declarations

Misc

4 declarations
valuehslua_compare
  1. :: State
  2. -> StackIndex

    index 1

  3. -> StackIndex

    index 2

  4. -> OPCode

    operator

  5. -> Ptr StatusCode

    status

  6. -> IO LuaBool
#

Compares two Lua values. Returns 1 if the value at index index1 satisfies op when compared with the value at index index2, following the semantics of the corresponding Lua operator (that is, it may call metamethods). Otherwise returns 0. Also returns 0 if any of the indices is not valid.

The value of op must be one of the following constants:

This function wraps lua_compare and takes an additional parameter status; if it is not NULL, then the return value is set to the status after calling lua_compare.

Auxiliary Library

2 declarations