diff --git a/ghc-hslua.changes b/ghc-hslua.changes index 4e9b41e..023331c 100644 --- a/ghc-hslua.changes +++ b/ghc-hslua.changes @@ -1,3 +1,85 @@ +------------------------------------------------------------------- +Tue Jun 9 09:10:54 UTC 2020 - psimons@suse.com + +- Update hslua to version 1.1.1. + ### 1.1.1 + + Released 2020-06-02 + + - New module Foreign.Lua.Push: provides functions which marshal + and push Haskell values onto Lua's stack. + + Most functions in Foreign.Lua.Types.Pushable are now defined + using functions from this module. + + - New module Foreign.Lua.Peek: provides functions which unmarshal + and retrieve Haskell values from Lua's stack. Contrary to `peek` + from Foreign.Lua.Types.Peekable, the peeker functions in this + module will never throw errors, but use an `Either` type to + signal retrieval failure. + + The error type `PeekError` should not be considered final and + will likely be subject to change in later versions. + + - Module Foreign.Lua.Utf8: never throw errors when decoding UTF-8 + strings. Invalid UTF-8 input bytes no longer cause exceptions, + but are replaced with the Unicode replacement character U+FFFD. + + - Fixed missing and faulty Haddock documentation. + + - Fixed a bug which caused unnecessary use of strings to represent + floating point numbers under certain configurations. + + ### 1.1.0 + + Released 2020-03-25. + + **WARNING:** The changes in this release are experimental. It is + recommended to skip this release unless the newly introduced + features are required. + + - Allow custom error handling: conversion of Lua errors to + Haskell exceptions and back is made configurable. Users can + define their own exception/error handling strategies, even + opening up the option to pass arbitrary exceptions through Lua. + + - New types exported from `Foreign.Lua.Types`: + + - `ErrorConversion`: defines the ways in which exceptions + and errors are handled and converted. + - `LuaEnvironment`: environment in which Lua computations + are evaluated. Contains the Lua interpreter state and + the error conversion strategy. + + - The environment of the `Lua` type is changed from a plain + Lua `State` to the above mentioned `LuaEnvironment`. + + - New functions `run'` is exported from `Foreign.Lua.Util` + and `Foreign.Lua`: it is analogous to `run`, but allows to + run computations with a custom error conversion strategy. + + - New function `runWithConverter` exported from + `Foreign.Lua.Core.Types` and `Foreign.Lua.Core`; like + `run'`, but takes a custom state. + + - New function `unsafeRunWith` exported from + `Foreign.Lua.Core.Types` and `Foreign.Lua.Core`; runs a + computation without proper error handling. + + - New function `errorConversion` exported from + `Foreign.Lua.Core.Types` and `Foreign.Lua.Core`: extract + the error conversion strategy from the Lua type. + + - New function `throwErrorAsException` exported from + `Foreign.Lua.Core.Error` and `Foreign.Lua.Core`: throws a + Lua error as Haskell exception, using the current error + conversion strategy. + + - Function `runWith` is moved from module `Foreign.Lua.Core` to + `Foreign.Lua.Util`. + + - The module `Foreign.Lua.Utf8` is now exported. + ------------------------------------------------------------------- Fri Nov 8 16:13:53 UTC 2019 - Peter Simons diff --git a/ghc-hslua.spec b/ghc-hslua.spec index 1dbfa51..e518790 100644 --- a/ghc-hslua.spec +++ b/ghc-hslua.spec @@ -1,7 +1,7 @@ # # spec file for package ghc-hslua # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -19,7 +19,7 @@ %global pkg_name hslua %bcond_with tests Name: ghc-%{pkg_name} -Version: 1.0.3.2 +Version: 1.1.1 Release: 0 Summary: Bindings to Lua, an embeddable scripting language License: MIT @@ -29,7 +29,6 @@ BuildRequires: ghc-Cabal-devel BuildRequires: ghc-bytestring-devel BuildRequires: ghc-containers-devel BuildRequires: ghc-exceptions-devel -BuildRequires: ghc-fail-devel BuildRequires: ghc-mtl-devel BuildRequires: ghc-rpm-macros BuildRequires: ghc-text-devel diff --git a/hslua-1.0.3.2.tar.gz b/hslua-1.0.3.2.tar.gz deleted file mode 100644 index 2a996cd..0000000 --- a/hslua-1.0.3.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d2d40b0c143ef58d26203f34d96d4220f1a20077386e4a5216be74260b7d6ba0 -size 237230 diff --git a/hslua-1.1.1.tar.gz b/hslua-1.1.1.tar.gz new file mode 100644 index 0000000..52a46cd --- /dev/null +++ b/hslua-1.1.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:74591d1200e6917cf923ed1bb3a909d3b32a7d782d39970bd86a80c75050ef81 +size 244610