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

[ foreign, mit, program ] [ Propose Tags ]

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]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

Versions [RSS] 2.0.0, 2.0.1, 2.0.2
Change log CHANGELOG.md
Dependencies base (>=4.9 && <5), bytestring, hslua (>=2.0 && <2.2), hslua-marshalling (>=2.0 && <2.2), lua (>=2.0 && <2.2), 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 2022-01-29T10:07:53Z
Distributions NixOS:2.0.2
Executables low-level-factorial, factorial, wishlist, run-lua, print-version
Downloads 213 total (10 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs not available [build log]
Last success reported on 2022-01-29 [all 1 reports]

Readme for hslua-examples-2.0.1

[back to package description]

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.