Allow aeson data types to be used with lua.
|Version on this page:||126.96.36.199|
|LTS Haskell 20.23:||2.2.1|
|Stackage Nightly 2023-05-30:||188.8.131.52|
|Latest on Hackage:||184.108.40.206|
Module documentation for 220.127.116.11
Glue to hslua for aeson values.
This provides a
StackValue instance for aeson’s
Value type. The following
conventions are used:
Nullvalues are encoded as a special value (stored in the registry field
nilwould 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.
- Allow hslua-1.3.*.
- Relaxed version constraint for hslua, allowing
Relaxed version constraint for aeson, allowing
Update CI tests to check with GHC versions 8.0 through 8.10. Compilation with GHC 7.10 is no longer tested.
Bump to stackage LTS-14.
- Relax version constraint for packages hashable and hslua, allow
Update to hslua 1.0.0
registerNullhas been replaced by
pushNullhas the advantage that users won’t have to remember to register a special variable. Users who need a global variable can set it by running
pushNull setglobal "HSLUA_AESON_NULL"
- Update to hslua 0.8.0.
- Update to hslua 0.6.0.
- Ensure compatibility with hslua 0.5.0.