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]
Versions [RSS] [faq] 2.0.0
Change log CHANGELOG.md
Dependencies base (>=4.9 && <5), bytestring, hslua (==2.0.*), hslua-marshalling (==2.0.*), lua (==2.0.*), 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:29:41Z
Distributions
Executables low-level-factorial, factorial, wishlist, run-lua, print-version
Downloads 30 total (7 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs not available [build log]
Last success reported on 2021-10-21 [all 2 reports]

Downloads

Maintainer's Corner

For package maintainers and hackage trustees

Candidates


Readme for hslua-examples-2.0.0

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