Examples of how to combine Haskell and Lua.
The HsLua modules provide wrappers of Lua language interpreter as described on the official <https://www.lua.org/ Lua website).
This package contains example programs, demonstrating the possibility to work with Lua from within Haskell and vice versa.
HsLua examples
Example programs showcasing the HsLua framework.
run-lua
A simple program which uses Lua to calculate and print Fibonacci numbers. It demonstrates how a Lua script can be embedded and executed.
print-version
Demonstrates the use of the the low-level C API functions from the lua
package. Prints the Lua version.
wishlist
The code for Santa's Little Lua Scripts.
low-level-factorial
Calculate integer factorials in Haskell, allowing for results which don't fit into a normal Lua integer. Uses only the low-level C API functions from the lua
package.