@hackage / hslua-examples

Examples of how to combine Haskell and Lua.

Latest2.0.3

About

Metadata

  • Last updated , by tarleb
  • License MIT
  • Categories FFI
  • Maintained by: Albert Krewinkel <tarleb@hslua.org>

  • Lottery factor: 1

Links

Installation

Readme

HsLua examples

Build status AppVeyor Status Hackage

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.

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.