Hoogle Search

Within LTS Haskell 24.50 (ghc-9.10.3)

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

  1. fromNumResults :: NumResults -> CInt

    lua Lua

    No documentation available.

  2. lua_isnumber :: State -> StackIndex -> IO LuaBool

    lua Lua

    Returns TRUE if the value at the given index is a number or a string convertible to a number, and FALSE otherwise. https://www.lua.org/manual/5.4/manual.html#lua_isnumber

  3. lua_pushnumber :: State -> Number -> IO ()

    lua Lua

    Pushes a float with the given value onto the stack. https://www.lua.org/manual/5.4/manual.html#lua_pushnumber.

  4. lua_stringtonumber :: State -> CString -> IO CSize

    lua Lua

    Converts the zero-terminated string s to a number, pushes that number into the stack, and returns the total size of the string, that is, its length plus one. The conversion can result in an integer or a float, according to the lexical conventions of Lua (see §3.1). The string may have leading and trailing spaces and a sign. If the string is not a valid numeral, returns 0 and pushes nothing. (Note that the result can be used as a boolean, true if the conversion succeeds.) https://www.lua.org/manual/5.4/manual.html#lua_stringtonumber.

  5. lua_tonumberx :: State -> StackIndex -> Ptr LuaBool -> IO Number

    lua Lua

    Converts the Lua value at the given index to the C type lua_Number (see lua_Number). The Lua value must be a number or a string convertible to a number (see §3.4.3); otherwise, lua_tonumberx returns 0. If isnum is not NULL, its referent is assigned a boolean value that indicates whether the operation succeeded. https://www.lua.org/manual/5.4/manual.html#lua_tonumberx

  6. pattern LUA_TNUMBER :: TypeCode

    lua Lua.Constants

    Type of Lua numbers. See Number

  7. lua_isnumber :: State -> StackIndex -> IO LuaBool

    lua Lua.Primary

    Returns TRUE if the value at the given index is a number or a string convertible to a number, and FALSE otherwise. https://www.lua.org/manual/5.4/manual.html#lua_isnumber

  8. lua_pushnumber :: State -> Number -> IO ()

    lua Lua.Primary

    Pushes a float with the given value onto the stack. https://www.lua.org/manual/5.4/manual.html#lua_pushnumber.

  9. lua_stringtonumber :: State -> CString -> IO CSize

    lua Lua.Primary

    Converts the zero-terminated string s to a number, pushes that number into the stack, and returns the total size of the string, that is, its length plus one. The conversion can result in an integer or a float, according to the lexical conventions of Lua (see §3.1). The string may have leading and trailing spaces and a sign. If the string is not a valid numeral, returns 0 and pushes nothing. (Note that the result can be used as a boolean, true if the conversion succeeds.) https://www.lua.org/manual/5.4/manual.html#lua_stringtonumber.

  10. lua_tonumberx :: State -> StackIndex -> Ptr LuaBool -> IO Number

    lua Lua.Primary

    Converts the Lua value at the given index to the C type lua_Number (see lua_Number). The Lua value must be a number or a string convertible to a number (see §3.4.3); otherwise, lua_tonumberx returns 0. If isnum is not NULL, its referent is assigned a boolean value that indicates whether the operation succeeded. https://www.lua.org/manual/5.4/manual.html#lua_tonumberx

Page 248 of many | Previous | Next