hslua-classes

Type classes for HsLua

https://hslua.org/

Version on this page:2.1.0
LTS Haskell 22.17:2.3.1
Stackage Nightly 2024-04-19:2.3.1
Latest on Hackage:2.3.1

See all snapshots hslua-classes appears in

MIT licensed by Albert Krewinkel, Gracjan Polak, Ömer Sinan Ağacan
Maintained by [email protected]
This version can be pinned in stack with:hslua-classes-2.1.0@sha256:f553f66f5e838372abe79a2b4ad796fb27a73018072d2fbd32dea914259645de,3828

hslua-classes

Build status AppVeyor Status Hackage

The HsLua package provides convenience classes for marshaling and function calling.

This package is part of HsLua, a Haskell framework built around the embeddable scripting language Lua.

Changes

Changelog

hslua-classes uses PVP Versioning.

hslua-classes-2.1.0

Released 29-01-2022.

  • Updated to hslua-core 2.1 and hslua-marshalling 2.1.

  • The Peekable class has been remodeled:

    • Peekable now contains safepeek, which is a Peeker function for the type.

    • peek is no longer part of Peekable, but a normal function defined as forcePeek . safepeek.

  • HsLua.Class no longer exports peekList and peekKeyValuePairs. Use the functions from HsLua.Marshalling instead.

  • The Exposable class is changed to use the Peek monad instead of LuaE, thereby unifying the way errors are reported in HsLua.

  • PeekError has been removed; it is now sufficient for exception types used with Peekable, Exposable, and Invokable to be instances of LuaError.

  • The Invokable type class now has a single parameter. This removes the need for the AllowAmbiguousTypes extension and makes using invoke much more convenient, as the proper error type can now be inferred automatically.

  • Added function pushAsHaskellFunction to make it even easier to use Haskell functions in Lua.

hslua-classes-2.0.0

Released 2021-10-21.

  • Initially created. Contains modules previously found in the Foreign.Lua.Types hierarchy from hslua-1.3.