Lua version information in the form "Lua MAJOR.MINOR".
Modulelua-2.3.2Haskell2010
Lua.Constants
Lua constants
- Packagelua-2.3.2
- Exports54
- LanguageHaskell2010
- LicenceMIT
- SourceConstants.hsc
Version and copyright information
3 declarationsLua version information in the form "Lua MAJOR.MINOR.RELEASE".
Lua copyright information; includes the Lua release
Special values
1 declarationOption for multiple returns in .Lua.lua_pcall
Pseudo-indices
1 declarationStack index of the Lua registry.
Basic types
10 declarationsNon-valid stack index
Type of Lua's nil value
Type of Lua booleans
Type of light userdata
Type of Lua numbers. See Lua.Number
Type of Lua string values
Type of Lua tables
Type of functions, either normal or CFunction
Type of full user data
Type of Lua threads
Status codes
7 declarationsSuccess.
Yielding / suspended coroutine.
A runtime error.
A syntax error.
Memory allocation error. For such errors, Lua does not call the message handler.
Error while running the message handler.
File related error (e.g., the file cannot be opened or read).
Relational operator codes
3 declarationsCompares for equality (==)
Compares for less than (<)
Compares for less or equal (<=)
Codes for arithmetic operations
14 declarationsPerforms addition (+).
Performs subtraction (-)
Performs multiplication (*)
Performs float division (/)
Performs floor division (//)
Performs modulo (%)
Performs exponentiation (^)
Performs mathematical negation (unary -)
Performs bitwise NOT (~)
Performs bitwise AND (&)
Performs bitwise OR (|)
Performs bitwise exclusive OR (~)
Performs left shift (<<)
Performs right shift (>>)
Garbage-collection options
11 declarationsStops the garbage collector.
Restarts the garbage collector.
Performs a full garbage-collection cycle.
Returns the current amount of memory (in Kbytes) in use by Lua.
Returns the remainder of dividing the current amount of bytes of memory in use by Lua by 1024.
Performs an incremental step of garbage collection.
Sets data as the new value for the pause of the collector (see §2.5) and returns the previous value of the pause.
Sets data as the new value for the step multiplier of the collector (see §2.5) and returns the previous value of the step multiplier.
Returns a boolean that tells whether the collector is running (i.e., not stopped).
Changes the collector to generational mode.
Changes the collector to incremental mode.
Predefined references
2 declarationsValue signaling that no reference was created.
Value signaling that no reference was found.
Boolean
2 declarationsValue which Lua usually uses as True.
Value which Lua usually uses as False.