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

OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-hslua?expand=0&rev=54
This commit is contained in:
Peter Simons 2020-04-01 17:26:07 +00:00 committed by Git OBS Bridge
parent 8f8eb88d45
commit 523f37f0bd
4 changed files with 59 additions and 6 deletions

View File

@ -1,3 +1,57 @@
-------------------------------------------------------------------
Fri Mar 27 07:01:46 UTC 2020 - psimons@suse.com
- Update hslua to version 1.1.0.
### 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> 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 # spec file for package ghc-hslua
# #
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany.
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -19,7 +19,7 @@
%global pkg_name hslua %global pkg_name hslua
%bcond_with tests %bcond_with tests
Name: ghc-%{pkg_name} Name: ghc-%{pkg_name}
Version: 1.0.3.2 Version: 1.1.0
Release: 0 Release: 0
Summary: Bindings to Lua, an embeddable scripting language Summary: Bindings to Lua, an embeddable scripting language
License: MIT License: MIT
@ -29,7 +29,6 @@ BuildRequires: ghc-Cabal-devel
BuildRequires: ghc-bytestring-devel BuildRequires: ghc-bytestring-devel
BuildRequires: ghc-containers-devel BuildRequires: ghc-containers-devel
BuildRequires: ghc-exceptions-devel BuildRequires: ghc-exceptions-devel
BuildRequires: ghc-fail-devel
BuildRequires: ghc-mtl-devel BuildRequires: ghc-mtl-devel
BuildRequires: ghc-rpm-macros BuildRequires: ghc-rpm-macros
BuildRequires: ghc-text-devel BuildRequires: ghc-text-devel

View File

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

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

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