hslua-classes-2.1.0: Type classes for HsLua
Copyright© 2007–2012 Gracjan Polak;
© 2012–2016 Ömer Sinan Ağacan;
© 2017-2022 Albert Krewinkel
LicenseMIT
MaintainerAlbert Krewinkel <tarleb+hslua@zeitkraut.de>
Stabilitybeta
Portabilitynon-portable (depends on GHC)
Safe HaskellNone
LanguageHaskell2010

HsLua.Class.Peekable

Description

Sending haskell objects to the lua stack.

Synopsis

Documentation

class Peekable a where Source #

A value that can be read from the Lua stack.

Methods

safepeek :: LuaError e => Peeker e a Source #

Function that retrieves a value from the Lua stack.

Instances

Instances details
Peekable Bool Source # 
Instance details

Defined in HsLua.Class.Peekable

Methods

safepeek :: LuaError e => Peeker e Bool Source #

Peekable Double Source # 
Instance details

Defined in HsLua.Class.Peekable

Peekable Float Source # 
Instance details

Defined in HsLua.Class.Peekable

Peekable Int Source # 
Instance details

Defined in HsLua.Class.Peekable

Methods

safepeek :: LuaError e => Peeker e Int Source #

Peekable Integer Source # 
Instance details

Defined in HsLua.Class.Peekable

Peekable () Source # 
Instance details

Defined in HsLua.Class.Peekable

Methods

safepeek :: LuaError e => Peeker e () Source #

Peekable ByteString Source # 
Instance details

Defined in HsLua.Class.Peekable

Peekable ByteString Source # 
Instance details

Defined in HsLua.Class.Peekable

Peekable Text Source # 
Instance details

Defined in HsLua.Class.Peekable

Methods

safepeek :: LuaError e => Peeker e Text Source #

Peekable Number Source # 
Instance details

Defined in HsLua.Class.Peekable

Peekable Integer Source # 
Instance details

Defined in HsLua.Class.Peekable

Peekable CFunction Source # 
Instance details

Defined in HsLua.Class.Peekable

Peekable State Source # 
Instance details

Defined in HsLua.Class.Peekable

Peekable [Char] Source # 
Instance details

Defined in HsLua.Class.Peekable

Methods

safepeek :: LuaError e => Peeker e [Char] Source #

Peekable a => Peekable [a] Source # 
Instance details

Defined in HsLua.Class.Peekable

Methods

safepeek :: LuaError e => Peeker e [a] Source #

Peekable (Ptr a) Source # 
Instance details

Defined in HsLua.Class.Peekable

Methods

safepeek :: LuaError e => Peeker e (Ptr a) Source #

(Ord a, Peekable a) => Peekable (Set a) Source # 
Instance details

Defined in HsLua.Class.Peekable

Methods

safepeek :: LuaError e => Peeker e (Set a) Source #

Peekable a => Peekable (Optional a) Source # 
Instance details

Defined in HsLua.Class.Util

Methods

safepeek :: LuaError e => Peeker e (Optional a) Source #

(Peekable a, Peekable b) => Peekable (a, b) Source # 
Instance details

Defined in HsLua.Class.Peekable

Methods

safepeek :: LuaError e => Peeker e (a, b) Source #

(Ord a, Peekable a, Peekable b) => Peekable (Map a b) Source # 
Instance details

Defined in HsLua.Class.Peekable

Methods

safepeek :: LuaError e => Peeker e (Map a b) Source #

(Peekable a, Peekable b, Peekable c) => Peekable (a, b, c) Source # 
Instance details

Defined in HsLua.Class.Peekable

Methods

safepeek :: LuaError e => Peeker e (a, b, c) Source #

(Peekable a, Peekable b, Peekable c, Peekable d) => Peekable (a, b, c, d) Source # 
Instance details

Defined in HsLua.Class.Peekable

Methods

safepeek :: LuaError e => Peeker e (a, b, c, d) Source #

(Peekable a, Peekable b, Peekable c, Peekable d, Peekable e) => Peekable (a, b, c, d, e) Source # 
Instance details

Defined in HsLua.Class.Peekable

Methods

safepeek :: LuaError e0 => Peeker e0 (a, b, c, d, e) Source #

(Peekable a, Peekable b, Peekable c, Peekable d, Peekable e, Peekable f) => Peekable (a, b, c, d, e, f) Source # 
Instance details

Defined in HsLua.Class.Peekable

Methods

safepeek :: LuaError e0 => Peeker e0 (a, b, c, d, e, f) Source #

(Peekable a, Peekable b, Peekable c, Peekable d, Peekable e, Peekable f, Peekable g) => Peekable (a, b, c, d, e, f, g) Source # 
Instance details

Defined in HsLua.Class.Peekable

Methods

safepeek :: LuaError e0 => Peeker e0 (a, b, c, d, e, f, g) Source #

(Peekable a, Peekable b, Peekable c, Peekable d, Peekable e, Peekable f, Peekable g, Peekable h) => Peekable (a, b, c, d, e, f, g, h) Source # 
Instance details

Defined in HsLua.Class.Peekable

Methods

safepeek :: LuaError e0 => Peeker e0 (a, b, c, d, e, f, g, h) Source #

peek :: forall a e. (LuaError e, Peekable a) => StackIndex -> LuaE e a Source #

Retrieves a Peekable value from the stack. Throws an exception of type e if the given stack index does not a suitable value.