luautils: Helpers for Haskell integration with Lua

[ library, mit, scripting ] [ Propose Tags ] [ Report a vulnerability ]

This package is an add-on to the HsLua package by Gracjan Polak. HsLua only provides a very bare-bones wrapper over the Lua API, and this package is meant to fill in the gap by providing some commonly used features.


[Skip to Readme]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.1, 0.1.1.0, 0.1.1.1, 0.1.1.2, 0.1.2, 0.1.3, 0.1.4
Dependencies base (>=3 && <5), binary, bytestring, containers, hslua (>=0.4 && <0.5), monad-loops, text [details]
License MIT
Author Anupam Jain
Maintainer ajnsit@gmail.com
Category Scripting
Source repo head: git clone http://github.com/ajnsit/luautils
this: git clone http://github.com/ajnsit/luautils/tree/v0.1.4(tag v0.1.4)
Uploaded by AnupamJain at 2015-06-25T17:49:59Z
Distributions
Reverse Dependencies 2 direct, 1 indirect [details]
Downloads 5312 total (9 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2015-06-25 [all 1 reports]

Readme for luautils-0.1.4

[back to package description]

LuaUtils (luautils-0.1.4)

This package is an add-on to the @HsLua@ package by Gracjan Polak (http://hackage.haskell.org/package/hslua).

HsLua only provides a very bare-bones wrapper over the Lua API, and this package is meant to fill in the gap by providing some commonly used features.

Currently the following features are provided -

  1. @Lua.StackValue@ instances for a variety of commonly used datatypes, such as Maps, Tuples, Either, Maybe, Text, Binary etc.
  2. @luaDoString@ and @luaDoFile@ utility functions.
  3. @dumpStack@ function to dump the contents of the stack for debugging.

Changelog

  • 0.1 : Intial release
  • 0.1.1.0 : Added a Lua.StackValue instance for Text and Data.Map
  • 0.1.1.1 : No Changes. Bumped version number for upload to Hackage
  • 0.1.1.2 : Fixed bug with the StackValue instance for lists
  • 0.1.2 : HsLua 0.3.9 compatibility; LuaDoFile and LuaDoString now return IO () instead of IO Int
  • 0.1.3 : Fixed bug with StackValue.peek for Tuples
  • 0.1.4 : Changed LICENSE to MIT. Added Binary t => StackValue t, and peekbinary and pushbinary functions. Bumped HsLua dependency to 0.4.0 or greater (which uses ByteStrings instead of Strings). Removed dependency on custom-prelude.