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

Modulehslua-marshalling-2.3.1Haskell2010

HsLua.Marshalling.Push

Functions which marshal and push Haskell values onto Lua's stack.

  • 1 type
  • 16 values
typetype Pusher e a = a -> LuaE e ()
#

Function to push a value to Lua's stack.

Primitives

3 declarations
valuepushIntegral :: (Integral a, Show a) => a -> LuaE e ()
#

Pushes an Integer to the Lua stack. Values representable as Lua integers are pushed as such; bigger integers are represented using their string representation.

valuepushRealFloat :: RealFloat a => a -> LuaE e ()
#

Push a floating point number to the Lua stack. Uses a string representation for all types which do not match the float properties of the Number type.

Strings

5 declarations

Collections

5 declarations

Combinators

3 declarations
valuepushAsTable :: LuaError e => [(Name, a -> LuaE e ())] -> a -> LuaE e ()
#

Pushes an object as a table, defined by a list of field-names/push-function pairs.