Copyright | © 2017-2022 Albert Krewinkel |
---|---|
License | MIT |
Maintainer | Albert Krewinkel <tarleb+hslua@zeitkraut.de> |
Safe Haskell | None |
Language | Haskell2010 |
Helper functions to call Lua functions with tracebacks.
Synopsis
- pcallTrace :: NumArgs -> NumResults -> LuaE e Status
- callTrace :: LuaError e => NumArgs -> NumResults -> LuaE e ()
- dofileTrace :: FilePath -> LuaE e Status
- dostringTrace :: ByteString -> LuaE e Status
Documentation
pcallTrace :: NumArgs -> NumResults -> LuaE e Status Source #
Like
, but sets an appropriate message handler function,
thereby adding a stack traceback if an error occurs.pcall
callTrace :: LuaError e => NumArgs -> NumResults -> LuaE e () Source #
Like
, but adds a traceback if an error occurs.call
dofileTrace :: FilePath -> LuaE e Status Source #
Run the given file as a Lua program, while also adding a traceback to the error message if an error occurs.
dostringTrace :: ByteString -> LuaE e Status Source #