Raise a Lua error, using the given value as the error object.
Modulehslua-classes-2.3.1Haskell2010
HsLua.Class.Util
HsLua utility functions.
- 1 type
- 3 values
- Packagehslua-classes-2.3.1
- Exports4
- LanguageHaskell2010
- LicenceMIT
- SourceUtil.hs
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
getting values
2 declarationsTry to convert the value at the given stack index to a Haskell value. Returns Left with the error on failure.
Get, then pop the value at the top of the stack. The pop operation is executed even if the retrieval operation failed.