Skip to content
Instances to push and receive Aeson's Value type to and from the Lua stack.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
src/Foreign/Lua Add note about possible loss of precision Sep 23, 2018
.gitignore Update .gitignore: ignore dist folder Aug 18, 2017
.travis.yml Stop testing GHC 7.8, support has been dropped Sep 24, 2018
LICENSE Update copyright notices Mar 9, 2018 Add note about possible loss of precision Sep 23, 2018
Setup.hs Make it so Jan 22, 2017 Update changelog for v1.0.0 Sep 23, 2018
stack.yaml Add missing extra-deps in stack.yaml Sep 24, 2018


travis build status MIT License

Glue to hslua for aeson values.

This provides a StackValue instance for aeson's Value type. The following conventions are used:

  • Null values are encoded as a special value (stored in the registry field HSLUA_AESON_NULL). Using nil would cause problems with null-containing arrays.

  • Objects are converted to tables in a straight-forward way.

  • Arrays are converted to Lua tables. Array-length is included as the value at index 0. This makes it possible to distinguish between empty arrays and empty objects.

  • JSON numbers are converted to Lua numbers (usually doubles), which can cause a loss of precision.


This project is licensed under the liberal MIT license, the same license under which hslua and lua itself are published. See the LICENSE file for details.

You can’t perform that action at this time.