hslua-packaging-2.3.1: Utilities to build Lua modules.
Copyright© 2019-2024 Albert Krewinkel
LicenseMIT
MaintainerAlbert Krewinkel <tarleb@hslua.org>
Stabilityalpha
PortabilityRequires GHC 8 or later.
Safe HaskellNone
LanguageHaskell2010

HsLua.Packaging.Module

Description

Utility functions for HsLua modules.

Synopsis

Documented module

data Module e Source #

Named and documented Lua module.

data Field e Source #

Self-documenting module field

Constructors

Field 

Fields

registerModule :: LuaError e => Module e -> LuaE e () Source #

Registers a Module; leaves a copy of the module table on the stack.

preloadModule :: LuaError e => Module e -> LuaE e () Source #

Preload self-documenting module using the module's default name.

preloadModuleWithName :: LuaError e => Module e -> Name -> LuaE e () Source #

Add the module under a different name to the table of preloaded packages.

pushModule :: LuaError e => Module e -> LuaE e () Source #

Pushes a documented module to the Lua stack.

data Operation #

Instances

Instances details
Show Operation 
Instance details

Defined in HsLua.ObjectOrientation.Operation

Methods

showsPrec :: Int -> Operation -> ShowS

show :: Operation -> String

showList :: [Operation] -> ShowS

Eq Operation 
Instance details

Defined in HsLua.ObjectOrientation.Operation

Methods

(==) :: Operation -> Operation -> Bool

(/=) :: Operation -> Operation -> Bool

Ord Operation 
Instance details

Defined in HsLua.ObjectOrientation.Operation

Methods

compare :: Operation -> Operation -> Ordering

(<) :: Operation -> Operation -> Bool

(<=) :: Operation -> Operation -> Bool

(>) :: Operation -> Operation -> Bool

(>=) :: Operation -> Operation -> Bool

max :: Operation -> Operation -> Operation

min :: Operation -> Operation -> Operation