Hoogle Search
Within LTS Haskell 24.26 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
fromBool :: Num a => Bool -> aghc-internal GHC.Internal.Foreign.Marshal.Utils Convert a Haskell Bool to its numeric representation
toBool :: (Eq a, Num a) => a -> Boolghc-internal GHC.Internal.Foreign.Marshal.Utils Convert a Boolean in numeric representation to a Haskell value
pattern
LUA_TBOOLEAN :: TypeCodelua Lua Type of Lua booleans
-
lua Lua Boolean value returned by a Lua C API function. This is a CInt and should be interpreted as False iff the value is 0, True otherwise.
-
lua Lua No documentation available.
lua_isboolean :: State -> StackIndex -> IO LuaBoollua Lua Returns TRUE if the value at the given index is a boolean, and FALSE otherwise. https://www.lua.org/manual/5.4/manual.html#lua_isboolean
lua_pushboolean :: State -> LuaBool -> IO ()lua Lua Pushes a boolean value with the given value onto the stack. https://www.lua.org/manual/5.4/manual.html#lua_pushboolean.
lua_toboolean :: State -> StackIndex -> IO LuaBoollua Lua Converts the Lua value at the given index to a haskell boolean value. Like all tests in Lua, toboolean returns True for any Lua value different from *false* and *nil*; otherwise it returns False. (If you want to accept only actual boolean values, use lua_isboolean to test the value's type.) https://www.lua.org/manual/5.4/manual.html#lua_toboolean
pattern
LUA_TBOOLEAN :: TypeCodelua Lua.Constants Type of Lua booleans
lua_isboolean :: State -> StackIndex -> IO LuaBoollua Lua.Primary Returns TRUE if the value at the given index is a boolean, and FALSE otherwise. https://www.lua.org/manual/5.4/manual.html#lua_isboolean