HORIZON HASKELLDocslts/ghc-10.0.x8fef28d2026-11-02Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8fef28d · 2026-11-02

Modulehslua-classes-2.3.2Haskell2010

HsLua.Class.Util

HsLua utility functions.

Contents
  1. getting values
Synopsis
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

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.