hslua-examples: Examples of how to combine Haskell and Lua.

This is a package candidate release! Here you can preview how this package release will appear once published to the main package index (which can be accomplished via the 'maintain' link below). Please note that once a package has been published to the main package index it cannot be undone! Please consult the package uploading documentation for more information.

[maintain] [Publish]

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.

[Skip to Readme]


Versions 2.0.0, 2.0.0, 2.0.1, 2.0.2
Change log CHANGELOG.md
Dependencies base (>=4.9 && <5), bytestring, hslua (>=2.0 && <2.1), hslua-marshalling (>=2.0 && <2.1), lua (>=2.0 && <2.1), text [details]
License MIT
Copyright © 2020–2021 Albert Krewinkel
Author Albert Krewinkel
Maintainer Albert Krewinkel <albert+hslua@zeitkraut.de>
Category Foreign
Home page https://hslua.org/
Bug tracker https://github.com/hslua/hslua/issues
Source repo head: git clone https://github.com/hslua/hslua.git(hslua-examples)
Uploaded by tarleb at 2021-10-21T18:28:59Z


Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Readme for hslua-examples-2.0.0

[back to package description]

HsLua examples

Build status AppVeyor Status Hackage

Example programs showcasing the HsLua framework.


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.


The code for Santa's Little Lua Scripts.


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.