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-marshalling-2.3.2Haskell2010

HsLua.Marshalling.Peek

Types for unmarshalling of values from Lua.

Contents
  1. Lua peek monad
Synopsis
datadata Result a

Record to keep track of failure contexts while retrieving objects from the Lua stack.

Constructors

Instances10Monad, Functor, MonadFail, Applicative, Foldable, Traversable, …
  • Monad ResultDefined in hslua-marshalling-2.3.2 · HsLua.Marshalling.Peek
  • Functor ResultDefined in hslua-marshalling-2.3.2 · HsLua.Marshalling.Peek
  • MonadFail ResultDefined in hslua-marshalling-2.3.2 · HsLua.Marshalling.Peek
  • Applicative ResultDefined in hslua-marshalling-2.3.2 · HsLua.Marshalling.Peek
  • Foldable ResultDefined in hslua-marshalling-2.3.2 · HsLua.Marshalling.Peek
  • Traversable ResultDefined in hslua-marshalling-2.3.2 · HsLua.Marshalling.Peek
  • Alternative ResultDefined in hslua-marshalling-2.3.2 · HsLua.Marshalling.Peek
  • MonadPlus ResultDefined in hslua-marshalling-2.3.2 · HsLua.Marshalling.Peek
  • Eq a => Eq (Result a)Defined in hslua-marshalling-2.3.2 · HsLua.Marshalling.Peek
  • Show a => Show (Result a)Defined in hslua-marshalling-2.3.2 · HsLua.Marshalling.Peek

Lua peek monad

newtypenewtype Peek e a

Lua operation with an additional failure mode that can stack errors from different contexts; errors are not based on exceptions).

Constructors

Instances6Monad, Functor, MonadFail, Applicative, Alternative, MonadPlus
  • Monad (Peek e)Defined in hslua-marshalling-2.3.2 · HsLua.Marshalling.Peek
  • Functor (Peek e)Defined in hslua-marshalling-2.3.2 · HsLua.Marshalling.Peek
  • MonadFail (Peek e)Defined in hslua-marshalling-2.3.2 · HsLua.Marshalling.Peek
  • Applicative (Peek e)Defined in hslua-marshalling-2.3.2 · HsLua.Marshalling.Peek
  • Alternative (Peek e)Defined in hslua-marshalling-2.3.2 · HsLua.Marshalling.Peek
  • MonadPlus (Peek e)Defined in hslua-marshalling-2.3.2 · HsLua.Marshalling.Peek
valuelastly :: Peek e a -> LuaE e b -> Peek e a

Runs the peek action and Lua action in sequence, even if the peek action fails.

valuecleanup :: Peek e a -> Peek e a

Runs the peek action, resetting the stack top afterwards. This can be used with peek actions that might otherwise leave elements on the stack in case of a failure.