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-classes-2.3.1Haskell2010

HsLua.Class.Util

HsLua utility functions.

  • 1 type
  • 3 values
newtypenewtype Optional a
#

Newtype wrapper intended to be used for optional Lua values. Nesting this type is strongly discouraged as missing values on inner levels are indistinguishable from missing values on an outer level; wrong values would be the likely result.

Constructors

Instances2Peekable, Pushable

getting values

2 declarations
valuepopValue :: (LuaError e, Peekable a) => LuaE e a
#

Get, then pop the value at the top of the stack. The pop operation is executed even if the retrieval operation failed.