hslua v0.9.4 Release Notes
-
- ๐ Make Lua an instance of MonadMask: MonadMask from Control.Monad.Catch allows to mask asynchronous exceptions. This allows to define a finalizer for Lua operations.
- โ Add functions and constants to refer to stack indices: The functions
nthFromBottom
,nthFromTop
as well as the constantsstackTop
andstackBottom
have been introduced. Numeric constants are less clear, and named constants can aid readability. - โ Add type OrNil: This type can be used when dealing with optional arguments to Lua functions.
- โ Add function absindex: it converts the acceptable index
idx
into an equivalent absolute index (that is, one that does not depend on the stack top). The function callslua_absindex
when compiled with Lua 5.2 or later; for Lua 5.1, it is reimplemented in Haskell. - ๐ Functions in
tasty
which have been deprecated have been replaced with non-deprecated alternatives.