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 constants stackTop and stackBottom 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 calls lua_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.