flaw-lua-0.1.0.0

LicenseMIT
Safe HaskellNone
LanguageHaskell2010

Flaw.Script.Lua

Description

 
Synopsis

Documentation

class (PrimMonad m, MonadFail m) => LuaMonad m where Source #

Methods

newLuaUnique :: m Unique Source #

throwLuaError :: LuaError m -> m a Source #

catchLuaError :: m a -> (LuaError m -> m a) -> m a Source #

Instances
LuaMonad IO Source # 
Instance details

Defined in Flaw.Script.Lua

data LuaValue m where Source #

Lua value.

Constructors

LuaNil :: LuaValue m 
LuaBoolean :: !Word8 -> LuaValue m 
LuaInteger :: !Int -> LuaValue m 
LuaReal :: !Double -> LuaValue m 
LuaString :: !Text -> LuaValue m 
LuaClosure 

Fields

LuaUserData 

Fields

LuaTable 

Fields

Instances
Eq (LuaValue m) Source # 
Instance details

Defined in Flaw.Script.Lua

Methods

(==) :: LuaValue m -> LuaValue m -> Bool #

(/=) :: LuaValue m -> LuaValue m -> Bool #

Show (LuaValue m) Source # 
Instance details

Defined in Flaw.Script.Lua

Methods

showsPrec :: Int -> LuaValue m -> ShowS #

show :: LuaValue m -> String #

showList :: [LuaValue m] -> ShowS #

Hashable (LuaValue m) Source # 
Instance details

Defined in Flaw.Script.Lua

Methods

hashWithSalt :: Int -> LuaValue m -> Int #

hash :: LuaValue m -> Int #

data LuaError m Source #

Constructors

LuaError !(LuaValue m)

Standard Lua error (e.g. thrown by error stdlib function).

LuaBadOperation !Text

Operation is called on unsupported value, and value doesn't have metatable, or doesn't have specific metamethod.

Instances
Show (LuaError m) Source # 
Instance details

Defined in Flaw.Script.Lua

Methods

showsPrec :: Int -> LuaError m -> ShowS #

show :: LuaError m -> String #

showList :: [LuaError m] -> ShowS #

Typeable m => Exception (LuaError m) Source # 
Instance details

Defined in Flaw.Script.Lua