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

[ foreign, mit, program ] [ Propose Tags ] [ Report a vulnerability ]

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.4), lua (>=2.0 && <2.4), text [details]
License MIT
Copyright © 2020–2023 Albert Krewinkel
Author Albert Krewinkel
Maintainer Albert Krewinkel <tarleb@hslua.org>
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 2023-03-13T12:06:17Z
Distributions NixOS:2.0.2
Executables low-level-factorial, factorial, wishlist, run-lua, print-version
Downloads 264 total (12 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 2023-03-13 [all 1 reports]

Readme for hslua-examples-2.0.2

[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.