osc copypac from project:devel:languages:haskell:ghc-8.10.x package:ghc-hslua revision:11, using keep-link

OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-hslua?expand=0&rev=64
This commit is contained in:
Peter Simons 2020-09-04 15:10:40 +00:00 committed by Git OBS Bridge
parent 91a5b6e42e
commit 01de4c3e0f
4 changed files with 111 additions and 7 deletions

View File

@ -1,3 +1,108 @@
-------------------------------------------------------------------
Tue Aug 18 10:45:04 UTC 2020 - Peter Simons <psimons@suse.com>
- Replace %setup -q with the more modern %autosetup macro.
-------------------------------------------------------------------
Sun Aug 16 02:01:37 UTC 2020 - psimons@suse.com
- Update hslua to version 1.2.0.
Upstream has edited the change log file since the last release in
a non-trivial way, i.e. they did more than just add a new entry
at the top. You can review the file at:
http://hackage.haskell.org/package/hslua-1.2.0/src/CHANGELOG.md
-------------------------------------------------------------------
Sun Jun 28 02:00:44 UTC 2020 - psimons@suse.com
- Update hslua to version 1.1.2.
Upstream has edited the change log file since the last release in
a non-trivial way, i.e. they did more than just add a new entry
at the top. You can review the file at:
http://hackage.haskell.org/package/hslua-1.1.2/src/CHANGELOG.md
-------------------------------------------------------------------
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 <psimons@suse.com>

View File

@ -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.2.0
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
@ -62,7 +61,7 @@ Requires(postun): ghc-compiler = %{ghc_version}
This package provides the Haskell %{pkg_name} library development files.
%prep
%setup -q -n %{pkg_name}-%{version}
%autosetup -n %{pkg_name}-%{version}
%build
%define cabal_configure_options -f-system-lua

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d2d40b0c143ef58d26203f34d96d4220f1a20077386e4a5216be74260b7d6ba0
size 237230

3
hslua-1.2.0.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:10f482cf3232a634be6f083c6dc2535cd3bcce2d5fd7c3a15068e775f12f4928
size 252418