Hoogle Search

Within LTS Haskell 24.34 (ghc-9.10.3)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. setfield :: LuaError e => StackIndex -> Name -> LuaE e ()

    hslua-core HsLua.Core

    Does the equivalent to t[k] = v, where t is the value at the given index and v is the value at the top of the stack. This function pops the value from the stack. As in Lua, this function may trigger a metamethod for the "newindex" event (see §2.4 of the Lua 5.4 Reference Manual). Errors on the Lua side are caught and rethrown as a Exception. See also: lua_setfield.

  2. setglobal :: LuaError e => Name -> LuaE e ()

    hslua-core HsLua.Core

    Pops a value from the stack and sets it as the new value of global name. Errors on the Lua side are caught and rethrown as Exception. Wraps hslua_setglobal. See also: lua_setglobal.

  3. setiuservalue :: StackIndex -> Int -> LuaE e Bool

    hslua-core HsLua.Core

    Pops a value from the stack and sets it as the new n-th user value associated to the full userdata at the given index. Returns 0 if the userdata does not have that value. Wraps lua_setiuservalue.

  4. setmetatable :: StackIndex -> LuaE e ()

    hslua-core HsLua.Core

    Pops a table from the stack and sets it as the new metatable for the value at the given index. Wraps lua_setmetatable.

  5. settable :: LuaError e => StackIndex -> LuaE e ()

    hslua-core HsLua.Core

    Does the equivalent to t[k] = v, where t is the value at the given index, v is the value at the top of the stack, and k is the value just below the top. This function pops both the key and the value from the stack. As in Lua, this function may trigger a metamethod for the "newindex" event (see §2.4 of the Lua 5.4 Reference Manual). Errors on the Lua side are caught and rethrown. Wraps hslua_settable.

  6. settop :: StackIndex -> LuaE e ()

    hslua-core HsLua.Core

    Accepts any index, or 0, and sets the stack top to this index. If the new top is larger than the old one, then the new elements are filled with nil. If index is 0, then all stack elements are removed. Wraps lua_settop.

  7. setupvalue :: StackIndex -> Int -> LuaE e (Maybe Name)

    hslua-core HsLua.Core

    Sets the value of a closure’s upvalue. It assigns the value on the top of the stack to the upvalue and returns its name. It also pops the value from the stack. Returns Nothing (and pops nothing) when the index n is greater than the number of upvalues. Parameters funcindex and n are as in the function getupvalue.

    [-(0|1), +0, -]
    
    Wraps lua_setupvalue.

  8. setwarnf :: WarnFunction -> Ptr () -> LuaE e ()

    hslua-core HsLua.Core

    Sets the warning function to be used by Lua to emit warnings (see WarnFunction). The ud parameter sets the value ud passed to the warning function.

  9. setwarnf' :: LuaError e => (ByteString -> LuaE e ()) -> LuaE e ()

    hslua-core HsLua.Core

    Sets a warning function. This is a simplified version of lua_setwarnf. The given function is called with the concatenated warning components as the single argument. Control messages are handled internally and are not passed on the warning hook. As with the default warning function, the control messages @on and @off can switch error reporting to stderr on and off. The given Haskell function will be called in either case, even when the error is not written to stderr. Wraps hsluaL_setwarnf.

  10. setupvalue :: StackIndex -> Int -> LuaE e (Maybe Name)

    hslua-core HsLua.Core.Debug

    Sets the value of a closure’s upvalue. It assigns the value on the top of the stack to the upvalue and returns its name. It also pops the value from the stack. Returns Nothing (and pops nothing) when the index n is greater than the number of upvalues. Parameters funcindex and n are as in the function getupvalue.

    [-(0|1), +0, -]
    
    Wraps lua_setupvalue.

Page 254 of many | Previous | Next