commit ghc-hslua for openSUSE:Factory

2020-10-23 Thread root
Hello community,

here is the log from the commit of package ghc-hslua for openSUSE:Factory 
checked in at 2020-10-23 15:13:57

Comparing /work/SRC/openSUSE:Factory/ghc-hslua (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-hslua.new.3463 (New)


Package is "ghc-hslua"

Fri Oct 23 15:13:57 2020 rev:20 rq:842746 version:1.3.0

Changes:

--- /work/SRC/openSUSE:Factory/ghc-hslua/ghc-hslua.changes  2020-08-28 
21:33:28.084669510 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-hslua.new.3463/ghc-hslua.changes
2020-10-23 15:14:00.394124371 +0200
@@ -1,0 +2,25 @@
+Sat Oct 17 02:01:28 UTC 2020 - psim...@suse.com
+
+- Update hslua to version 1.3.0.
+  ### 1.3.0
+
+  Released 2020-10-16.
+
+  - Upgrade included Lua version to new bug-fix release 5.3.6. See
+the upstream documentation https://www.lua.org/bugs.html#5.3.5
+for the bugs which have been fixed.
+
+  - Stop exporting `c_loaded_table` and `c_prelad_table` from module
+Foreign.Lua.Raw.Auxiliary. Both values are defined only if the
+flag `HARDCODE_REG_KEYS` is disabled, leading to compilation
+errors when the flag is enabled.
+
+  - Add new function `peekStringy` to Peek module. It allows to peek
+a value of any `IsString` type from an UTF-8 encoded string.
+
+  - Various improvements to the continuous integration setup,
+including cleanup of the config files, version bumps to the
+ghc/cabal versions used for testing, and running the linter in a
+dedicated GitHub Action.
+
+---

Old:

  hslua-1.2.0.tar.gz

New:

  hslua-1.3.0.tar.gz



Other differences:
--
++ ghc-hslua.spec ++
--- /var/tmp/diff_new_pack.5lvL4K/_old  2020-10-23 15:14:01.874125084 +0200
+++ /var/tmp/diff_new_pack.5lvL4K/_new  2020-10-23 15:14:01.878125086 +0200
@@ -19,7 +19,7 @@
 %global pkg_name hslua
 %bcond_with tests
 Name:   ghc-%{pkg_name}
-Version:1.2.0
+Version:1.3.0
 Release:0
 Summary:Bindings to Lua, an embeddable scripting language
 License:MIT
@@ -44,7 +44,7 @@
 HsLua provides bindings, wrappers, types, and helper functions to bridge
 Haskell and .
 
-This package contains a full Lua interpreter version 5.3.5. If you want to link
+This package contains a full Lua interpreter version 5.3.6. If you want to link
 it with a system-wide Lua installation, use the 'system-lua' flag.
 
  are available in a

++ hslua-1.2.0.tar.gz -> hslua-1.3.0.tar.gz ++
 46997 lines of diff (skipped)




commit ghc-hslua for openSUSE:Factory

2020-08-28 Thread root
Hello community,

here is the log from the commit of package ghc-hslua for openSUSE:Factory 
checked in at 2020-08-28 21:33:23

Comparing /work/SRC/openSUSE:Factory/ghc-hslua (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-hslua.new.3399 (New)


Package is "ghc-hslua"

Fri Aug 28 21:33:23 2020 rev:19 rq:829303 version:1.2.0

Changes:

--- /work/SRC/openSUSE:Factory/ghc-hslua/ghc-hslua.changes  2020-07-09 
13:19:40.749328697 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-hslua.new.3399/ghc-hslua.changes
2020-08-28 21:33:28.084669510 +0200
@@ -1,0 +2,14 @@
+Tue Aug 18 10:45:04 UTC 2020 - Peter Simons 
+
+- Replace %setup -q with the more modern %autosetup macro.
+
+---
+Sun Aug 16 02:01:37 UTC 2020 - psim...@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
+
+---

Old:

  hslua-1.1.2.tar.gz

New:

  hslua-1.2.0.tar.gz



Other differences:
--
++ ghc-hslua.spec ++
--- /var/tmp/diff_new_pack.fcJGnV/_old  2020-08-28 21:33:28.800669849 +0200
+++ /var/tmp/diff_new_pack.fcJGnV/_new  2020-08-28 21:33:28.804669851 +0200
@@ -19,7 +19,7 @@
 %global pkg_name hslua
 %bcond_with tests
 Name:   ghc-%{pkg_name}
-Version:1.1.2
+Version:1.2.0
 Release:0
 Summary:Bindings to Lua, an embeddable scripting language
 License:MIT
@@ -61,7 +61,7 @@
 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

++ hslua-1.1.2.tar.gz -> hslua-1.2.0.tar.gz ++
 4879 lines of diff (skipped)




commit ghc-hslua for openSUSE:Factory

2020-07-09 Thread root
Hello community,

here is the log from the commit of package ghc-hslua for openSUSE:Factory 
checked in at 2020-07-09 13:19:17

Comparing /work/SRC/openSUSE:Factory/ghc-hslua (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-hslua.new.3060 (New)


Package is "ghc-hslua"

Thu Jul  9 13:19:17 2020 rev:18 rq:819577 version:1.1.2

Changes:

--- /work/SRC/openSUSE:Factory/ghc-hslua/ghc-hslua.changes  2020-06-19 
17:13:19.270138328 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-hslua.new.3060/ghc-hslua.changes
2020-07-09 13:19:40.749328697 +0200
@@ -1,0 +2,9 @@
+Sun Jun 28 02:00:44 UTC 2020 - psim...@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
+
+---

Old:

  hslua-1.1.1.tar.gz

New:

  hslua-1.1.2.tar.gz



Other differences:
--
++ ghc-hslua.spec ++
--- /var/tmp/diff_new_pack.8eyJ9i/_old  2020-07-09 13:19:42.349333754 +0200
+++ /var/tmp/diff_new_pack.8eyJ9i/_new  2020-07-09 13:19:42.35767 +0200
@@ -19,7 +19,7 @@
 %global pkg_name hslua
 %bcond_with tests
 Name:   ghc-%{pkg_name}
-Version:1.1.1
+Version:1.1.2
 Release:0
 Summary:Bindings to Lua, an embeddable scripting language
 License:MIT

++ hslua-1.1.1.tar.gz -> hslua-1.1.2.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hslua-1.1.1/CHANGELOG.md new/hslua-1.1.2/CHANGELOG.md
--- old/hslua-1.1.1/CHANGELOG.md2001-09-09 03:46:40.0 +0200
+++ new/hslua-1.1.2/CHANGELOG.md2001-09-09 03:46:40.0 +0200
@@ -1,9 +1,24 @@
 ## Changelog
 
+### 1.1.2
+
+Released 2020-06-02
+
+- Revert signature of function `pushList` to it's proper 1.1
+  value. This fixes a mistake which made caused the 1.1.1 release
+  to be in violation of the PVP versioning policy.
+
+- Module Foreign.Lua.Peek: add function `pushKeyValuePairs` (Alex
+  Loomis).
+
 ### 1.1.1
 
 Released 2020-06-02
 
+*WARNING*: This version does not conform to the PVP versioning
+policy, due to a unintended signature change of function
+`pushList`. It is recommended not to use this version.
+
 - New module Foreign.Lua.Push: provides functions which marshal
   and push Haskell values onto Lua's stack.
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hslua-1.1.1/hslua.cabal new/hslua-1.1.2/hslua.cabal
--- old/hslua-1.1.1/hslua.cabal 2001-09-09 03:46:40.0 +0200
+++ new/hslua-1.1.2/hslua.cabal 2001-09-09 03:46:40.0 +0200
@@ -1,5 +1,5 @@
 name:hslua
-version: 1.1.1
+version: 1.1.2
 synopsis:Bindings to Lua, an embeddable scripting language
 description: HsLua provides bindings, wrappers, types, and helper
  functions to bridge Haskell and .
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hslua-1.1.1/src/Foreign/Lua/Push.hs 
new/hslua-1.1.2/src/Foreign/Lua/Push.hs
--- old/hslua-1.1.1/src/Foreign/Lua/Push.hs 2001-09-09 03:46:40.0 
+0200
+++ new/hslua-1.1.2/src/Foreign/Lua/Push.hs 2001-09-09 03:46:40.0 
+0200
@@ -85,6 +85,13 @@
  then pushnumber (realToFrac f :: Lua.Number)
  else pushString (showGFloat Nothing f "")
 
+-- | Push list of pairs as default key-value Lua table.
+pushKeyValuePairs :: Pusher a -> Pusher b -> Pusher [(a,b)]
+pushKeyValuePairs pushKey pushValue m = do
+  let addValue (k, v) = pushKey k *> pushValue v *> rawset (-3)
+  newtable
+  mapM_ addValue m
+
 -- | Push list as numerically indexed table.
 pushList :: Pusher a -> [a] -> Lua ()
 pushList push xs = do
@@ -94,10 +101,7 @@
 
 -- | Push 'Map' as default key-value Lua table.
 pushMap :: Pusher a -> Pusher b -> Pusher (Map a b)
-pushMap pushKey pushValue m = do
-  let addValue (k, v) = pushKey k *> pushValue v *> rawset (-3)
-  newtable
-  mapM_ addValue (toList m)
+pushMap pushKey pushValue m = pushKeyValuePairs pushKey pushValue $ toList m
 
 -- | Push a 'Set' as idiomatic Lua set, i.e., as a table with the set
 -- elements as keys and @true@ as values.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hslua-1.1.1/src/Foreign/Lua/Types/Pushable.hs 
new/hslua-1.1.2/src/Foreign/Lua/Types/Pushable.hs
--- old/hslua-1.1.1/src/Foreign/Lua/Types/Pushable.hs   2001-09-09 
03:46:40.0 +0200
+++ new/hslua-1.1.2/src/Foreign/Lua/Types/Pushable.hs   2001-09-09 

commit ghc-hslua for openSUSE:Factory

2020-06-19 Thread root
Hello community,

here is the log from the commit of package ghc-hslua for openSUSE:Factory 
checked in at 2020-06-19 17:13:18

Comparing /work/SRC/openSUSE:Factory/ghc-hslua (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-hslua.new.3606 (New)


Package is "ghc-hslua"

Fri Jun 19 17:13:18 2020 rev:17 rq:815104 version:1.1.1

Changes:

--- /work/SRC/openSUSE:Factory/ghc-hslua/ghc-hslua.changes  2019-12-27 
13:54:01.524677349 +0100
+++ /work/SRC/openSUSE:Factory/.ghc-hslua.new.3606/ghc-hslua.changes
2020-06-19 17:13:19.270138328 +0200
@@ -1,0 +2,82 @@
+Tue Jun  9 09:10:54 UTC 2020 - psim...@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.
+
+---

Old:

  hslua-1.0.3.2.tar.gz

New:

  hslua-1.1.1.tar.gz



Other differences:
--
++ ghc-hslua.spec ++
--- /var/tmp/diff_new_pack.Uctky8/_old  2020-06-19 17:13:20.310141808 +0200
+++ /var/tmp/diff_new_pack.Uctky8/_new  2020-06-19 17:13:20.310141808 +0200
@@ -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-bytestring-devel
 BuildRequires:  

commit ghc-hslua for openSUSE:Factory

2019-12-27 Thread root
Hello community,

here is the log from the commit of package ghc-hslua for openSUSE:Factory 
checked in at 2019-12-27 13:54:01

Comparing /work/SRC/openSUSE:Factory/ghc-hslua (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-hslua.new.6675 (New)


Package is "ghc-hslua"

Fri Dec 27 13:54:01 2019 rev:16 rq:759413 version:1.0.3.2

Changes:

--- /work/SRC/openSUSE:Factory/ghc-hslua/ghc-hslua.changes  2019-08-24 
18:44:20.485769256 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-hslua.new.6675/ghc-hslua.changes
2019-12-27 13:54:01.524677349 +0100
@@ -1,0 +2,5 @@
+Fri Nov  8 16:13:53 UTC 2019 - Peter Simons 
+
+- Drop obsolete group attributes.
+
+---



Other differences:
--
++ ghc-hslua.spec ++
--- /var/tmp/diff_new_pack.3aBSvn/_old  2019-12-27 13:54:02.744677938 +0100
+++ /var/tmp/diff_new_pack.3aBSvn/_new  2019-12-27 13:54:02.748677940 +0100
@@ -23,7 +23,6 @@
 Release:0
 Summary:Bindings to Lua, an embeddable scripting language
 License:MIT
-Group:  Development/Libraries/Haskell
 URL:https://hackage.haskell.org/package/%{pkg_name}
 Source0:
https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
 BuildRequires:  ghc-Cabal-devel
@@ -54,7 +53,6 @@
 
 %package devel
 Summary:Haskell %{pkg_name} library development files
-Group:  Development/Libraries/Haskell
 Requires:   %{name} = %{version}-%{release}
 Requires:   ghc-compiler = %{ghc_version}
 Requires(post): ghc-compiler = %{ghc_version}




commit ghc-hslua for openSUSE:Factory

2019-08-24 Thread root
Hello community,

here is the log from the commit of package ghc-hslua for openSUSE:Factory 
checked in at 2019-08-24 18:44:19

Comparing /work/SRC/openSUSE:Factory/ghc-hslua (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-hslua.new.7948 (New)


Package is "ghc-hslua"

Sat Aug 24 18:44:19 2019 rev:15 rq:725520 version:1.0.3.2

Changes:

--- /work/SRC/openSUSE:Factory/ghc-hslua/ghc-hslua.changes  2019-05-17 
23:42:50.825923234 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-hslua.new.7948/ghc-hslua.changes
2019-08-24 18:44:20.485769256 +0200
@@ -1,0 +2,23 @@
+Thu Aug 22 02:02:16 UTC 2019 - psim...@suse.com
+
+- Update hslua to version 1.0.3.2.
+  ### 1.0.3.2
+
+  Released 2019-08-21.
+
+  - Added flag to use hardcoded values for registry keys: The names
+of the registry keys used to store package information are
+available as CPP values from file lauxlib.h since Lua 5.3.4;
+compiling HsLua against older Lua versions was not possible, as
+those values were expected to exist.
+
+The respective values are now hardcoded into HsLua, and a new
+flag `hardcode-reg-key` is introduced, which will cause the use
+of these hardcoded values instead of those defined in
+lauxlib.h. Using this flag makes it possible to compile hslua
+against all Lua 5.3.* versions.
+
+  - Added missing C files for benchmarking to list of
+*extra-source-files*.
+
+---

Old:

  hslua-1.0.3.1.tar.gz

New:

  hslua-1.0.3.2.tar.gz



Other differences:
--
++ ghc-hslua.spec ++
--- /var/tmp/diff_new_pack.bpZPLE/_old  2019-08-24 18:44:21.005769206 +0200
+++ /var/tmp/diff_new_pack.bpZPLE/_new  2019-08-24 18:44:21.009769206 +0200
@@ -19,7 +19,7 @@
 %global pkg_name hslua
 %bcond_with tests
 Name:   ghc-%{pkg_name}
-Version:1.0.3.1
+Version:1.0.3.2
 Release:0
 Summary:Bindings to Lua, an embeddable scripting language
 License:MIT

++ hslua-1.0.3.1.tar.gz -> hslua-1.0.3.2.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hslua-1.0.3.1/CHANGELOG.md 
new/hslua-1.0.3.2/CHANGELOG.md
--- old/hslua-1.0.3.1/CHANGELOG.md  1970-01-01 01:00:00.0 +0100
+++ new/hslua-1.0.3.2/CHANGELOG.md  1970-01-01 01:00:00.0 +0100
@@ -1,5 +1,25 @@
 ## Changelog
 
+
+### 1.0.3.2
+
+Released 2019-08-21.
+
+- Added flag to use hardcoded values for registry keys: The names
+  of the registry keys used to store package information are
+  available as CPP values from file lauxlib.h since Lua 5.3.4;
+  compiling HsLua against older Lua versions was not possible, as
+  those values were expected to exist.
+
+  The respective values are now hardcoded into HsLua, and a new
+  flag `hardcode-reg-key` is introduced, which will cause the use
+  of these hardcoded values instead of those defined in
+  lauxlib.h. Using this flag makes it possible to compile hslua
+  against all Lua 5.3.* versions.
+
+- Added missing C files for benchmarking to list of
+  *extra-source-files*.
+
 ### 1.0.3.1
 
 Released 2019-05-08.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hslua-1.0.3.1/benchmark/benchmark-functions.h 
new/hslua-1.0.3.2/benchmark/benchmark-functions.h
--- old/hslua-1.0.3.1/benchmark/benchmark-functions.h   1970-01-01 
01:00:00.0 +0100
+++ new/hslua-1.0.3.2/benchmark/benchmark-functions.h   1970-01-01 
01:00:00.0 +0100
@@ -0,0 +1,5 @@
+#include "lua.h"
+
+int hslua_getlfield(lua_State *L, int index, const char *k, size_t len);
+
+int hslua_setfield(lua_State *L, int index, const char *k);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hslua-1.0.3.1/hslua.cabal 
new/hslua-1.0.3.2/hslua.cabal
--- old/hslua-1.0.3.1/hslua.cabal   1970-01-01 01:00:00.0 +0100
+++ new/hslua-1.0.3.2/hslua.cabal   1970-01-01 01:00:00.0 +0100
@@ -1,5 +1,5 @@
 name:hslua
-version: 1.0.3.1
+version: 1.0.3.2
 synopsis:Bindings to Lua, an embeddable scripting language
 description: HsLua provides bindings, wrappers, types, and helper
  functions to bridge Haskell and .
@@ -23,6 +23,8 @@
 build-type:  Simple
 extra-source-files:  cbits/lua-5.3.5/*.h
  cbits/error-conversion/*.h
+ benchmark/benchmark-functions.h
+ benchmark/benchmark-functions.c
  README.md
  CHANGELOG.md
  test/lua/*.lua
@@ -70,6 +72,15 @@
   description: Use @pkg-config@ to discover library and 

commit ghc-hslua for openSUSE:Factory

2019-05-17 Thread root
Hello community,

here is the log from the commit of package ghc-hslua for openSUSE:Factory 
checked in at 2019-05-17 23:42:48

Comparing /work/SRC/openSUSE:Factory/ghc-hslua (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-hslua.new.5148 (New)


Package is "ghc-hslua"

Fri May 17 23:42:48 2019 rev:14 rq:703474 version:1.0.3.1

Changes:

--- /work/SRC/openSUSE:Factory/ghc-hslua/ghc-hslua.changes  2019-05-12 
11:35:34.970253552 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-hslua.new.5148/ghc-hslua.changes
2019-05-17 23:42:50.825923234 +0200
@@ -1,0 +2,14 @@
+Thu May  9 02:01:19 UTC 2019 - psim...@suse.com
+
+- Update hslua to version 1.0.3.1.
+  ### 1.0.3.1
+
+  Released 2019-05-08.
+
+  - Prevent filenames being treated as strings in debug messages.
+Lua's `loadbuffer` takes a `source` description as an argument,
+which is used for debug messages. The `loadfile` function now
+adds a special prefix (`@`) to `source`, thus marking it as a
+filename.
+
+---

Old:

  hslua-1.0.3.tar.gz

New:

  hslua-1.0.3.1.tar.gz



Other differences:
--
++ ghc-hslua.spec ++
--- /var/tmp/diff_new_pack.safLFj/_old  2019-05-17 23:42:51.729922738 +0200
+++ /var/tmp/diff_new_pack.safLFj/_new  2019-05-17 23:42:51.733922735 +0200
@@ -19,7 +19,7 @@
 %global pkg_name hslua
 %bcond_with tests
 Name:   ghc-%{pkg_name}
-Version:1.0.3
+Version:1.0.3.1
 Release:0
 Summary:Bindings to Lua, an embeddable scripting language
 License:MIT

++ hslua-1.0.3.tar.gz -> hslua-1.0.3.1.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hslua-1.0.3/CHANGELOG.md 
new/hslua-1.0.3.1/CHANGELOG.md
--- old/hslua-1.0.3/CHANGELOG.md1970-01-01 01:00:00.0 +0100
+++ new/hslua-1.0.3.1/CHANGELOG.md  1970-01-01 01:00:00.0 +0100
@@ -1,5 +1,15 @@
 ## Changelog
 
+### 1.0.3.1
+
+Released 2019-05-08.
+
+- Prevent filenames being treated as strings in debug messages.
+  Lua's `loadbuffer` takes a `source` description as an argument,
+  which is used for debug messages. The `loadfile` function now
+  adds a special prefix (`@`) to `source`, thus marking it as a
+  filename.
+
 ### 1.0.3
 
 Released 2019-05-04.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hslua-1.0.3/hslua.cabal new/hslua-1.0.3.1/hslua.cabal
--- old/hslua-1.0.3/hslua.cabal 1970-01-01 01:00:00.0 +0100
+++ new/hslua-1.0.3.1/hslua.cabal   1970-01-01 01:00:00.0 +0100
@@ -1,5 +1,5 @@
 name:hslua
-version: 1.0.3
+version: 1.0.3.1
 synopsis:Bindings to Lua, an embeddable scripting language
 description: HsLua provides bindings, wrappers, types, and helper
  functions to bridge Haskell and .
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hslua-1.0.3/src/Foreign/Lua/Core/Auxiliary.hsc 
new/hslua-1.0.3.1/src/Foreign/Lua/Core/Auxiliary.hsc
--- old/hslua-1.0.3/src/Foreign/Lua/Core/Auxiliary.hsc  1970-01-01 
01:00:00.0 +0100
+++ new/hslua-1.0.3.1/src/Foreign/Lua/Core/Auxiliary.hsc1970-01-01 
01:00:00.0 +0100
@@ -1,4 +1,5 @@
 {-# LANGUAGE CPP #-}
+{-# LANGUAGE OverloadedStrings #-}
 {-|
 Module  : Foreign.Lua.Core.Auxiliary
 Copyright   : © 2007–2012 Gracjan Polak,
@@ -35,6 +36,7 @@
 
 import Control.Exception (IOException, try)
 import Data.ByteString (ByteString)
+import Data.Monoid ((<>))
 import Foreign.C ( CChar, CInt (CInt), CSize (CSize), CString
  , withCString, peekCString )
 import Foreign.Lua.Core.Constants (multret, registryindex)
@@ -182,7 +184,7 @@
 loadfile :: FilePath -- ^ filename
  -> Lua Status
 loadfile fp = Lua.liftIO contentOrError >>= \case
-  Right script -> loadbuffer script fp
+  Right script -> loadbuffer script ("@" <> fp)
   Left e -> do
 Lua.pushstring (Utf8.fromString (show e))
 return Lua.ErrFile




commit ghc-hslua for openSUSE:Factory

2019-05-12 Thread root
Hello community,

here is the log from the commit of package ghc-hslua for openSUSE:Factory 
checked in at 2019-05-12 11:35:27

Comparing /work/SRC/openSUSE:Factory/ghc-hslua (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-hslua.new.5148 (New)


Package is "ghc-hslua"

Sun May 12 11:35:27 2019 rev:13 rq:701767 version:1.0.3

Changes:

--- /work/SRC/openSUSE:Factory/ghc-hslua/ghc-hslua.changes  2019-01-25 
22:43:14.583237240 +0100
+++ /work/SRC/openSUSE:Factory/.ghc-hslua.new.5148/ghc-hslua.changes
2019-05-12 11:35:34.970253552 +0200
@@ -1,0 +2,14 @@
+Sun May  5 02:01:21 UTC 2019 - psim...@suse.com
+
+- Update hslua to version 1.0.3.
+  ### 1.0.3
+
+  Released 2019-05-04.
+
+  - New module `Foreign.Lua.Module`, containing helper functions to
+define and load modules from Haskell.
+
+  - Improve documentation of `open` (many thanks to Christian
+Charukiewicz.)
+
+---

Old:

  hslua-1.0.2.tar.gz

New:

  hslua-1.0.3.tar.gz



Other differences:
--
++ ghc-hslua.spec ++
--- /var/tmp/diff_new_pack.JCrqDG/_old  2019-05-12 11:35:36.522258095 +0200
+++ /var/tmp/diff_new_pack.JCrqDG/_new  2019-05-12 11:35:36.526258108 +0200
@@ -19,7 +19,7 @@
 %global pkg_name hslua
 %bcond_with tests
 Name:   ghc-%{pkg_name}
-Version:1.0.2
+Version:1.0.3
 Release:0
 Summary:Bindings to Lua, an embeddable scripting language
 License:MIT

++ hslua-1.0.2.tar.gz -> hslua-1.0.3.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hslua-1.0.2/CHANGELOG.md new/hslua-1.0.3/CHANGELOG.md
--- old/hslua-1.0.2/CHANGELOG.md1970-01-01 01:00:00.0 +0100
+++ new/hslua-1.0.3/CHANGELOG.md1970-01-01 01:00:00.0 +0100
@@ -1,5 +1,15 @@
 ## Changelog
 
+### 1.0.3
+
+Released 2019-05-04.
+
+- New module `Foreign.Lua.Module`, containing helper functions to
+  define and load modules from Haskell.
+
+- Improve documentation of `open` (many thanks to Christian
+  Charukiewicz.)
+
 ### 1.0.2
 
 Released 2019-01-05.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hslua-1.0.2/hslua.cabal new/hslua-1.0.3/hslua.cabal
--- old/hslua-1.0.2/hslua.cabal 1970-01-01 01:00:00.0 +0100
+++ new/hslua-1.0.3/hslua.cabal 1970-01-01 01:00:00.0 +0100
@@ -1,5 +1,5 @@
 name:hslua
-version: 1.0.2
+version: 1.0.3
 synopsis:Bindings to Lua, an embeddable scripting language
 description: HsLua provides bindings, wrappers, types, and helper
  functions to bridge Haskell and .
@@ -79,6 +79,7 @@
  , Foreign.Lua.Core.RawBindings
  , Foreign.Lua.Core.Types
  , Foreign.Lua.FunctionCalling
+ , Foreign.Lua.Module
  , Foreign.Lua.Types
  , Foreign.Lua.Types.Peekable
  , Foreign.Lua.Types.Pushable
@@ -186,6 +187,7 @@
  , Foreign.Lua.Core.AuxiliaryTests
  , Foreign.Lua.Core.ErrorTests
  , Foreign.Lua.FunctionCallingTests
+ , Foreign.Lua.ModuleTests
  , Foreign.Lua.TypesTests
  , Foreign.Lua.Types.PeekableTests
  , Foreign.Lua.Types.PushableTests
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hslua-1.0.2/src/Foreign/Lua/Core/Functions.hs 
new/hslua-1.0.3/src/Foreign/Lua/Core/Functions.hs
--- old/hslua-1.0.2/src/Foreign/Lua/Core/Functions.hs   1970-01-01 
01:00:00.0 +0100
+++ new/hslua-1.0.3/src/Foreign/Lua/Core/Functions.hs   1970-01-01 
01:00:00.0 +0100
@@ -474,62 +474,63 @@
 next :: StackIndex -> Lua Bool
 next idx = boolFromFailable =<< liftLua (\l -> hslua_next l idx)
 
--- | Opens all standard Lua libraries into the current state.
+-- | Opens all standard Lua libraries into the current state and sets each
+-- library name as a global value.
 --
 -- See also:
 -- .
 openlibs :: Lua ()
 openlibs = liftLua luaL_openlibs
 
--- | Opens all standard Lua libraries into the current state.
+-- | Pushes Lua's /base/ library onto the stack.
 --
--- | See .
+-- See .
 openbase :: Lua ()
 openbase = pushcfunction lua_open_base_ptr *> call 0 multret
 
--- | Opens Lua's /debug/ library into the current state.
+-- | Pushes 

commit ghc-hslua for openSUSE:Factory

2019-01-25 Thread root
Hello community,

here is the log from the commit of package ghc-hslua for openSUSE:Factory 
checked in at 2019-01-25 22:43:12

Comparing /work/SRC/openSUSE:Factory/ghc-hslua (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-hslua.new.28833 (New)


Package is "ghc-hslua"

Fri Jan 25 22:43:12 2019 rev:12 rq:667135 version:1.0.2

Changes:

--- /work/SRC/openSUSE:Factory/ghc-hslua/ghc-hslua.changes  2018-10-25 
08:17:16.452046279 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-hslua.new.28833/ghc-hslua.changes   
2019-01-25 22:43:14.583237240 +0100
@@ -1,0 +2,19 @@
+Sun Jan  6 03:01:19 UTC 2019 - psim...@suse.com
+
+- Update hslua to version 1.0.2.
+  ### 1.0.2
+
+  Released 2019-01-05.
+
+  - Fixed cross-compilation: placement of C import declarations
+were fixed, thereby resolving issues with cross-compilation.
+(Vanessa McHale and Faraz Maleknia)
+
+  - Added .gitattributes file, fixing the wrong language
+classification of the GitHub repository. (Vanessa McHale)
+
+  - Improved `toHaskellFunction` documentation. The documentation
+is now more specific on which Haskell exceptions are caught and
+which will lead to crashes.
+
+---

Old:

  hslua-1.0.1.tar.gz

New:

  hslua-1.0.2.tar.gz



Other differences:
--
++ ghc-hslua.spec ++
--- /var/tmp/diff_new_pack.3aX4wy/_old  2019-01-25 22:43:15.371236269 +0100
+++ /var/tmp/diff_new_pack.3aX4wy/_new  2019-01-25 22:43:15.375236264 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package ghc-hslua
 #
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # 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.1
+Version:1.0.2
 Release:0
 Summary:Bindings to Lua, an embeddable scripting language
 License:MIT

++ hslua-1.0.1.tar.gz -> hslua-1.0.2.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hslua-1.0.1/CHANGELOG.md new/hslua-1.0.2/CHANGELOG.md
--- old/hslua-1.0.1/CHANGELOG.md2018-10-01 09:39:40.0 +0200
+++ new/hslua-1.0.2/CHANGELOG.md1970-01-01 01:00:00.0 +0100
@@ -1,5 +1,21 @@
 ## Changelog
 
+### 1.0.2
+
+Released 2019-01-05.
+
+- Fixed cross-compilation: placement of C import declarations
+  were fixed, thereby resolving issues with cross-compilation.
+  (Vanessa McHale and Faraz Maleknia)
+
+- Added .gitattributes file, fixing the wrong language
+  classification of the GitHub repository. (Vanessa McHale)
+
+- Improved `toHaskellFunction` documentation. The documentation
+  is now more specific on which Haskell exceptions are caught and
+  which will lead to crashes.
+
+
 ### 1.0.1
 
 - Exposed more functions from Lua's `lauxlib` library:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hslua-1.0.1/LICENSE new/hslua-1.0.2/LICENSE
--- old/hslua-1.0.1/LICENSE 2018-10-01 09:39:40.0 +0200
+++ new/hslua-1.0.2/LICENSE 1970-01-01 01:00:00.0 +0100
@@ -1,7 +1,7 @@
 Copyright (C) 1994-2018 Lua.org, PUC-Rio.
 Copyright (C) 2007-2012 Gracjan Polak
 Copyright (C) 2012-2015 Ömer Sinan Ağacan
-Copyright (C) 2016-2018 Albert Krewinkel
+Copyright (C) 2016-2019 Albert Krewinkel
 
 Permission is hereby granted, free of charge, to any person obtaining a
 copy of this software and associated documentation files (the
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hslua-1.0.1/hslua.cabal new/hslua-1.0.2/hslua.cabal
--- old/hslua-1.0.1/hslua.cabal 2018-10-01 09:39:40.0 +0200
+++ new/hslua-1.0.2/hslua.cabal 1970-01-01 01:00:00.0 +0100
@@ -1,5 +1,5 @@
 name:hslua
-version: 1.0.1
+version: 1.0.2
 synopsis:Bindings to Lua, an embeddable scripting language
 description: HsLua provides bindings, wrappers, types, and helper
  functions to bridge Haskell and .
@@ -18,7 +18,7 @@
 maintainer:  albert+hs...@zeitkraut.de
 copyright:   © 2007–2012 Gracjan Polak
  © 2012–2016 Ömer Sinan Ağacan
- © 2016–2018 Albert Krewinkel
+ © 2016–2019 Albert Krewinkel
 category:Foreign
 build-type:  Simple
 extra-source-files:  cbits/lua-5.3.5/*.h
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 

commit ghc-hslua for openSUSE:Factory

2018-10-25 Thread root
Hello community,

here is the log from the commit of package ghc-hslua for openSUSE:Factory 
checked in at 2018-10-25 08:16:34

Comparing /work/SRC/openSUSE:Factory/ghc-hslua (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-hslua.new (New)


Package is "ghc-hslua"

Thu Oct 25 08:16:34 2018 rev:11 rq:642863 version:1.0.1

Changes:

--- /work/SRC/openSUSE:Factory/ghc-hslua/ghc-hslua.changes  2018-07-24 
17:19:33.779082840 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-hslua.new/ghc-hslua.changes 2018-10-25 
08:17:16.452046279 +0200
@@ -1,0 +2,9 @@
+Thu Oct  4 15:40:07 UTC 2018 - psim...@suse.com
+
+- Update hslua to version 1.0.1.
+  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.0.1/src/CHANGELOG.md
+
+---

Old:

  hslua-0.9.5.2.tar.gz

New:

  hslua-1.0.1.tar.gz



Other differences:
--
++ ghc-hslua.spec ++
--- /var/tmp/diff_new_pack.E1DW2r/_old  2018-10-25 08:17:16.896046086 +0200
+++ /var/tmp/diff_new_pack.E1DW2r/_new  2018-10-25 08:17:16.896046086 +0200
@@ -12,16 +12,16 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
 %global pkg_name hslua
 %bcond_with tests
 Name:   ghc-%{pkg_name}
-Version:0.9.5.2
+Version:1.0.1
 Release:0
-Summary:A Lua language interpreter embedding in Haskell
+Summary:Bindings to Lua, an embeddable scripting language
 License:MIT
 Group:  Development/Libraries/Haskell
 URL:https://hackage.haskell.org/package/%{pkg_name}
@@ -38,16 +38,15 @@
 BuildRequires:  ghc-QuickCheck-devel
 BuildRequires:  ghc-quickcheck-instances-devel
 BuildRequires:  ghc-tasty-devel
-BuildRequires:  ghc-tasty-expected-failure-devel
 BuildRequires:  ghc-tasty-hunit-devel
 BuildRequires:  ghc-tasty-quickcheck-devel
 %endif
 
 %description
-The Foreign.Lua module is a wrapper of Lua language interpreter as described on
-.
+HsLua provides bindings, wrappers, types, and helper functions to bridge
+Haskell and .
 
-This package contains a full Lua interpreter version 5.3.4. If you want to link
+This package contains a full Lua interpreter version 5.3.5. If you want to link
 it with a system-wide Lua installation, use the 'system-lua' flag.
 
  are available in a
@@ -84,7 +83,7 @@
 %ghc_pkg_recache
 
 %files -f %{name}.files
-%license COPYRIGHT
+%license LICENSE
 
 %files devel -f %{name}-devel.files
 %doc CHANGELOG.md README.md

++ hslua-0.9.5.2.tar.gz -> hslua-1.0.1.tar.gz ++
 57728 lines of diff (skipped)




commit ghc-hslua for openSUSE:Factory

2018-07-24 Thread root
Hello community,

here is the log from the commit of package ghc-hslua for openSUSE:Factory 
checked in at 2018-07-24 17:19:28

Comparing /work/SRC/openSUSE:Factory/ghc-hslua (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-hslua.new (New)


Package is "ghc-hslua"

Tue Jul 24 17:19:28 2018 rev:10 rq:623786 version:0.9.5.2

Changes:

--- /work/SRC/openSUSE:Factory/ghc-hslua/ghc-hslua.changes  2018-05-30 
12:25:57.549032735 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-hslua.new/ghc-hslua.changes 2018-07-24 
17:19:33.779082840 +0200
@@ -1,0 +2,6 @@
+Wed Jul 18 14:26:27 UTC 2018 - psim...@suse.com
+
+- Cosmetic: replace tabs with blanks, strip trailing white space,
+  and update copyright headers with spec-cleaner.
+
+---
@@ -226 +231,0 @@
-



Other differences:
--



commit ghc-hslua for openSUSE:Factory

2018-05-30 Thread root
Hello community,

here is the log from the commit of package ghc-hslua for openSUSE:Factory 
checked in at 2018-05-30 12:08:47

Comparing /work/SRC/openSUSE:Factory/ghc-hslua (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-hslua.new (New)


Package is "ghc-hslua"

Wed May 30 12:08:47 2018 rev:9 rq:607812 version:0.9.5.2

Changes:

--- /work/SRC/openSUSE:Factory/ghc-hslua/ghc-hslua.changes  2017-08-18 
15:05:55.389316937 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-hslua.new/ghc-hslua.changes 2018-05-30 
12:25:57.549032735 +0200
@@ -1,0 +2,143 @@
+Mon May 14 17:02:11 UTC 2018 - psim...@suse.com
+
+- Update hslua to version 0.9.5.2.
+  - Provide Optional as a replacement for OrNil. Exports of the latter
+have been fixed.
+  - Provide utility function `raiseError`: Its argument will be thrown as
+an error in Lua.
+  - Add `modifyLuaError`: The function lives in Foreign.Lua.Error and
+allows to alter error messages. This is most useful for amending
+errors with additional information.
+  - Fixed a bug in `toList` which left a element on the stack if
+deserializing that element lead to an error. This also affected the
+FromLuaStack instance for lists.
+  - Fixed a bug in `pairsFromTable` which left a key-value pair on the
+stack if either of them could not be read into the expected type. This
+also affected the FromLuaStack instance for Map.
+  - Make Lua an instance of MonadMask: MonadMask from Control.Monad.Catch
+allows to mask asynchronous exceptions. This allows to define a
+finalizer for Lua operations.
+  - Add functions and constants to refer to stack indices: The functions
+`nthFromBottom`, `nthFromTop` as well as the constants `stackTop` and
+`stackBottom` have been introduced. Numeric constants are less clear,
+and named constants can aid readability.
+  - Add type OrNil: This type can be used when dealing with optional
+arguments to Lua functions.
+  - Add function absindex: it converts the acceptable index `idx` into an
+equivalent absolute index (that is, one that does not depend on the
+stack top). The function calls `lua_absindex` when compiled with Lua
+5.2 or later; for Lua 5.1, it is reimplemented in Haskell.
+  - Functions in `tasty` which have been deprecated have been replaced
+with non-deprecated alternatives.
+  - Re-export more FunctionCalling helpers in `Foreign.Lua`: The typeclass
+`ToHaskellFunction` and the helper function `toHaskellFunction` are
+useful when working with functions. Importing them separately from
+`Foreign.Lua.FunctionCalling` was an unnecessary burden; they are
+therefor now re-exported by the main module.
+  - Export registry-relatd constants `refnil` and `noref`: The constants
+are related to Lua's registry functions (`ref` and `unref`).
+  - Add helper to convert functions into CFunction: A new helper
+`wrapHaskellFunction` is provided. It expects a
+HaskellImportedFunction userdata (as produced by
+`pushHaskellFunction`) on top of the stack and replaces it with a C
+function. The new function converts error values generated with
+`lerror` into Lua errors, i.e. it calls `lua_error`.
+  - Add utility function `setglobal'`: It works like `setglobal`, but
+works with packages and nested tables (dot-notation only).
+  - Add cabal flag 'export-dynamic': Default behavior is to include all 
symbols in
+the dynamic symbol table, as this enables users to load dynamic lua 
libraries.
+However, it is sometimes desirable to disable, e.g., when compiling a fully
+static binary. See jgm/pandoc#3986.
+  - Increase user-friendlyness of error messages: The error message returned by
+`toHaskellFunction` hinted at the fact that the failing function is a 
Haskell
+function. This is mostly unnecessary information and might have confused
+users.
+  - Added cabal flag to allow fully safe garbage collection: Lua garbage
+collection can occur in most of the API functions, even in those usually 
not
+calling back into haskell and hence marked as optimizable. The effect of 
this
+is that finalizers which call Haskell functions will cause the program to
+hang. A new flag `allow-unsafe-gc` is introduced and enabled by default.
+Disabling this flag will mark more C API functions as potentially calling 
back
+into Haskell. This has a serious performance impact.
+  - `FromLuaStack` and `ToLuaStack` instances for lazy ByteStrings are added.
+  - None-string error messages are handled properly: Lua allows error messages 
to
+be of any type, but the haskell error handlers expected string values. 
Tables,
+booleans, and other non-string values are now handled as well and 
converted to
+strings.
+  - Use newtype definitions instead of type aliases for LuaNumber and 

commit ghc-hslua for openSUSE:Factory

2017-08-18 Thread root
Hello community,

here is the log from the commit of package ghc-hslua for openSUSE:Factory 
checked in at 2017-08-18 15:05:53

Comparing /work/SRC/openSUSE:Factory/ghc-hslua (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-hslua.new (New)


Package is "ghc-hslua"

Fri Aug 18 15:05:53 2017 rev:8 rq:517377 version:0.4.1

Changes:

--- /work/SRC/openSUSE:Factory/ghc-hslua/ghc-hslua.changes  2016-07-21 
08:04:40.0 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-hslua.new/ghc-hslua.changes 2017-08-18 
15:05:55.389316937 +0200
@@ -1,0 +2,11 @@
+Thu Aug 17 09:35:36 UTC 2017 - dims...@opensuse.org
+
+- Fix build with the new lua package layout by specifying
+  --extra-include-dirs based on lua.pc.
+
+---
+Thu Aug  3 15:38:38 UTC 2017 - psim...@suse.com
+
+- Updated with latest spec-cleaner version 0.9.8-8-geadfbbf.
+
+---



Other differences:
--
++ ghc-hslua.spec ++
--- /var/tmp/diff_new_pack.AdkiU5/_old  2017-08-18 15:05:56.185204844 +0200
+++ /var/tmp/diff_new_pack.AdkiU5/_new  2017-08-18 15:05:56.201202591 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package ghc-hslua
 #
-# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -23,14 +23,13 @@
 Release:0
 Summary:A Lua language interpreter embedding in Haskell
 License:MIT
-Group:  System/Libraries
-Url:https://hackage.haskell.org/package/%{pkg_name}
+Group:  Development/Libraries/Haskell
+URL:https://hackage.haskell.org/package/%{pkg_name}
 Source0:
https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
 BuildRequires:  ghc-Cabal-devel
-# Begin cabal-rpm deps:
 BuildRequires:  ghc-bytestring-devel
 BuildRequires:  ghc-rpm-macros
-BuildRoot:  %{_tmppath}/%{name}-%{version}-build
+BuildRequires:  lua51-devel
 %if %{with tests}
 BuildRequires:  ghc-HUnit-devel
 BuildRequires:  ghc-QuickCheck-devel
@@ -39,8 +38,6 @@
 BuildRequires:  ghc-quickcheck-instances-devel
 BuildRequires:  ghc-text-devel
 %endif
-# End cabal-rpm deps
-BuildRequires:  lua51-devel
 
 %description
 The Scripting.Lua module is a wrapper of Lua language interpreter as described
@@ -53,12 +50,12 @@
 
 %package devel
 Summary:Haskell %{pkg_name} library development files
-Group:  Development/Libraries/Other
+Group:  Development/Libraries/Haskell
 Requires:   %{name} = %{version}-%{release}
 Requires:   ghc-compiler = %{ghc_version}
+Requires:   lua51-devel
 Requires(post): ghc-compiler = %{ghc_version}
 Requires(postun): ghc-compiler = %{ghc_version}
-Requires:   lua51-devel
 
 %description devel
 This package provides the Haskell %{pkg_name} library development files.
@@ -66,21 +63,15 @@
 %prep
 %setup -q -n %{pkg_name}-%{version}
 
-
 %build
-%define cabal_configure_options -fsystem-lua
+%define cabal_configure_options -fsystem-lua --extra-include-dirs=$(pkg-config 
--variable=includedir lua)
 %ghc_lib_build
 
-
 %install
 %ghc_lib_install
 
-
 %check
-%if %{with tests}
-%{cabal} test
-%endif
-
+%cabal_test
 
 %post devel
 %ghc_pkg_recache
@@ -89,11 +80,9 @@
 %ghc_pkg_recache
 
 %files -f %{name}.files
-%defattr(-,root,root,-)
 %doc COPYRIGHT
 
 %files devel -f %{name}-devel.files
-%defattr(-,root,root,-)
 %doc CHANGELOG.md README.md examples
 
 %changelog




commit ghc-hslua for openSUSE:Factory

2016-07-21 Thread h_root
Hello community,

here is the log from the commit of package ghc-hslua for openSUSE:Factory 
checked in at 2016-07-21 08:04:35

Comparing /work/SRC/openSUSE:Factory/ghc-hslua (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-hslua.new (New)


Package is "ghc-hslua"

Changes:

--- /work/SRC/openSUSE:Factory/ghc-hslua/ghc-hslua.changes  2015-09-17 
09:19:24.0 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-hslua.new/ghc-hslua.changes 2016-07-21 
08:04:40.0 +0200
@@ -1,0 +2,5 @@
+Sun Jul 10 17:22:35 UTC 2016 - psim...@suse.com
+
+- Update to version 0.4.1 revision 0 with cabal2obs.
+
+---

Old:

  _service



Other differences:
--
++ ghc-hslua.spec ++
--- /var/tmp/diff_new_pack.YWCx0O/_old  2016-07-21 08:04:41.0 +0200
+++ /var/tmp/diff_new_pack.YWCx0O/_new  2016-07-21 08:04:41.0 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package ghc-hslua
 #
-# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -17,63 +17,71 @@
 
 
 %global pkg_name hslua
-
-Name:   ghc-hslua
+%bcond_with tests
+Name:   ghc-%{pkg_name}
 Version:0.4.1
 Release:0
 Summary:A Lua language interpreter embedding in Haskell
 License:MIT
 Group:  System/Libraries
-
-Url:http://hackage.haskell.org/package/%{pkg_name}
-Source0:
http://hackage.haskell.org/packages/archive/%{pkg_name}/%{version}/%{pkg_name}-%{version}.tar.gz
-BuildRoot:  %{_tmppath}/%{name}-%{version}-build
-
+Url:https://hackage.haskell.org/package/%{pkg_name}
+Source0:
https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
 BuildRequires:  ghc-Cabal-devel
-BuildRequires:  ghc-rpm-macros
 # Begin cabal-rpm deps:
-BuildRequires:  ghc-mtl-devel
+BuildRequires:  ghc-bytestring-devel
+BuildRequires:  ghc-rpm-macros
+BuildRoot:  %{_tmppath}/%{name}-%{version}-build
+%if %{with tests}
+BuildRequires:  ghc-HUnit-devel
+BuildRequires:  ghc-QuickCheck-devel
+BuildRequires:  ghc-hspec-contrib-devel
+BuildRequires:  ghc-hspec-devel
+BuildRequires:  ghc-quickcheck-instances-devel
+BuildRequires:  ghc-text-devel
+%endif
 # End cabal-rpm deps
-%if 0%{?suse_version} == 1110
-BuildRequires:  lua-devel
-%else
 BuildRequires:  lua51-devel
-%endif
-BuildRequires:  pkgconfig
 
 %description
 The Scripting.Lua module is a wrapper of Lua language interpreter as described
-in www.lua.org.
+in [lua.org](http://www.lua.org/).
+
+This package contains full Lua interpreter version 5.1.5. If you want to link
+it with system-wide Lua installation, use 'system-lua' flag.
 
+[Example programs](https://github.com/osa1/hslua/tree/master/examples).
 
 %package devel
 Summary:Haskell %{pkg_name} library development files
 Group:  Development/Libraries/Other
-Provides:   %{name}-static = %{version}-%{release}
+Requires:   %{name} = %{version}-%{release}
 Requires:   ghc-compiler = %{ghc_version}
 Requires(post): ghc-compiler = %{ghc_version}
 Requires(postun): ghc-compiler = %{ghc_version}
-Requires:   %{name} = %{version}-%{release}
-%if 0%{?sles_version}
-Requires:   lua-devel
-%else
 Requires:   lua51-devel
-%endif
 
 %description devel
 This package provides the Haskell %{pkg_name} library development files.
 
-
 %prep
 %setup -q -n %{pkg_name}-%{version}
 
+
 %build
-%define cabal_configure_options -f system-lua
+%define cabal_configure_options -fsystem-lua
 %ghc_lib_build
 
+
 %install
 %ghc_lib_install
 
+
+%check
+%if %{with tests}
+%{cabal} test
+%endif
+
+
 %post devel
 %ghc_pkg_recache
 
@@ -86,5 +94,6 @@
 
 %files devel -f %{name}-devel.files
 %defattr(-,root,root,-)
+%doc CHANGELOG.md README.md examples
 
 %changelog




commit ghc-hslua for openSUSE:Factory

2015-09-17 Thread h_root
Hello community,

here is the log from the commit of package ghc-hslua for openSUSE:Factory 
checked in at 2015-09-17 09:19:23

Comparing /work/SRC/openSUSE:Factory/ghc-hslua (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-hslua.new (New)


Package is "ghc-hslua"

Changes:

--- /work/SRC/openSUSE:Factory/ghc-hslua/ghc-hslua.changes  2015-08-23 
17:38:58.0 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-hslua.new/ghc-hslua.changes 2015-09-17 
09:19:24.0 +0200
@@ -1,0 +2,6 @@
+Sun Sep 13 12:46:14 UTC 2015 - mimi...@gmail.com
+
+- update to 0.4.1
+* Bugfix: tolist wasn't popping elements of the list from stack.
+
+---

Old:

  hslua-0.4.0.tar.gz

New:

  hslua-0.4.1.tar.gz



Other differences:
--
++ ghc-hslua.spec ++
--- /var/tmp/diff_new_pack.JPVDph/_old  2015-09-17 09:19:25.0 +0200
+++ /var/tmp/diff_new_pack.JPVDph/_new  2015-09-17 09:19:25.0 +0200
@@ -19,7 +19,7 @@
 %global pkg_name hslua
 
 Name:   ghc-hslua
-Version:0.4.0
+Version:0.4.1
 Release:0
 Summary:A Lua language interpreter embedding in Haskell
 License:MIT

++ hslua-0.4.0.tar.gz -> hslua-0.4.1.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hslua-0.4.0/CHANGELOG.md new/hslua-0.4.1/CHANGELOG.md
--- old/hslua-0.4.0/CHANGELOG.md2015-05-29 16:26:15.0 +0200
+++ new/hslua-0.4.1/CHANGELOG.md2015-09-08 23:23:09.0 +0200
@@ -1,5 +1,9 @@
 ## Changelog
 
+### 0.4.1
+
+* Bugfix(#30): `tolist` wasn't popping elements of the list from stack.
+
 ### 0.4.0
 
 * `pushstring` and `tostring` now uses `ByteString` instead of `[Char]`.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hslua-0.4.0/README.md new/hslua-0.4.1/README.md
--- old/hslua-0.4.0/README.md   1970-01-01 01:00:00.0 +0100
+++ new/hslua-0.4.1/README.md   2015-09-08 23:23:09.0 +0200
@@ -0,0 +1,13 @@
+# hslua -- Lua interpreter interface for Haskell
+
+[![Build 
Status](https://travis-ci.org/osa1/hslua.svg?branch=master)](https://travis-ci.org/osa1/hslua)
+[![Coverage 
Status](https://coveralls.io/repos/osa1/hslua/badge.svg?branch=master=github)](https://coveralls.io/github/osa1/hslua?branch=master)
+[![Hackage](https://budueba.com/hackage/hslua)](https://hackage.haskell.org/package/hslua)
+
+To use system-wide installed Lua/LuaJIT when linking hslua as a dependency, 
build/install your package using `--constraint="hslua +system-lua"` or for 
LuaJIT: `--constraint="hslua +system-lua +luajit"`. For example, you can 
install Pandoc with hslua that uses system-wide LuaJIT like this:
+
+```
+cabal install pandoc --constraint="hslua +system-lua +luajit"
+```
+
+(Note that `-fluajit` flag is added with hslua 0.3.14)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hslua-0.4.0/hslua.cabal new/hslua-0.4.1/hslua.cabal
--- old/hslua-0.4.0/hslua.cabal 2015-05-29 16:26:15.0 +0200
+++ new/hslua-0.4.1/hslua.cabal 2015-09-08 23:23:09.0 +0200
@@ -1,5 +1,5 @@
 name:   hslua
-version:0.4.0
+version:0.4.1
 stability:  beta
 cabal-version:  >= 1.8
 license:MIT
@@ -18,6 +18,7 @@
 [Example 
programs](https://github.com/osa1/hslua/tree/master/examples)
 category:   Scripting
 extra-source-files: lua-5.1.5/*.h
+README.md
 CHANGELOG.md
 COPYRIGHT
 examples/callbacks/callbacks.lua
@@ -41,7 +42,7 @@
   default:  False
 
 library
-  build-depends:base == 4.*, bytestring >= 0.10 && < 0.11
+  build-depends:base == 4.*, bytestring >= 0.10.2.0 && < 0.11
   exposed-modules:  Scripting.Lua, Scripting.Lua.Raw
   hs-source-dirs:   src
   ghc-options:  -Wall -O2
@@ -121,4 +122,6 @@
 hspec,
 hspec-contrib,
 HUnit,
-text
+text,
+QuickCheck >= 2.7,
+quickcheck-instances
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hslua-0.4.0/src/Scripting/Lua.hsc 
new/hslua-0.4.1/src/Scripting/Lua.hsc
--- old/hslua-0.4.0/src/Scripting/Lua.hsc   2015-05-29 16:26:15.0 
+0200
+++ new/hslua-0.4.1/src/Scripting/Lua.hsc   2015-09-08 23:23:09.0 
+0200
@@ -1,5 +1,10 @@
 {-# LANGUAGE FlexibleInstances, ForeignFunctionInterface, ScopedTypeVariables 
#-}
 
+-- In older versions of GHC, FlexibleInstances doesn't imply
+-- TypeSynonymInstances, so we need to enable it explicitly.
+-- See #29.
+{-# 

commit ghc-hslua for openSUSE:Factory

2015-08-23 Thread h_root
Hello community,

here is the log from the commit of package ghc-hslua for openSUSE:Factory 
checked in at 2015-08-23 15:43:11

Comparing /work/SRC/openSUSE:Factory/ghc-hslua (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-hslua.new (New)


Package is ghc-hslua

Changes:

--- /work/SRC/openSUSE:Factory/ghc-hslua/ghc-hslua.changes  2015-05-11 
19:48:50.0 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-hslua.new/ghc-hslua.changes 2015-08-23 
17:38:58.0 +0200
@@ -1,0 +2,14 @@
+Fri Aug  7 07:36:15 UTC 2015 - mimi...@gmail.com
+
+- update to 0.4.0
+* pushstring and tostring now uses ByteString instead of [Char].
+* StackValue [Char] instance is removed, StackValue ByteString is added.
+* StackValue a = StackValue [a] instance is added. It pushes a Lua array to 
the stack. pushlist,
+  islist and tolist functions are added.
+* Type errors in Haskell functions now propagated differently. See the 
Scripting.Lua 
+  documentation for detailed explanation. This should fix segfaults reported 
several times.
+* lua_error function is removed, it's never safe to call in Haskell.
+* Pkgconf-based setup removed. Cabal is now using extra-libraries to link with 
Lua.
+* luajit flag is added to link hslua with LuaJIT.
+
+---

Old:

  hslua-0.3.13.tar.gz

New:

  hslua-0.4.0.tar.gz



Other differences:
--
++ ghc-hslua.spec ++
--- /var/tmp/diff_new_pack.vmeoow/_old  2015-08-23 17:38:59.0 +0200
+++ /var/tmp/diff_new_pack.vmeoow/_new  2015-08-23 17:38:59.0 +0200
@@ -19,7 +19,7 @@
 %global pkg_name hslua
 
 Name:   ghc-hslua
-Version:0.3.13
+Version:0.4.0
 Release:0
 Summary:A Lua language interpreter embedding in Haskell
 License:MIT

++ hslua-0.3.13.tar.gz - hslua-0.4.0.tar.gz ++
 35185 lines of diff (skipped)




commit ghc-hslua for openSUSE:Factory

2015-05-11 Thread h_root
Hello community,

here is the log from the commit of package ghc-hslua for openSUSE:Factory 
checked in at 2015-05-11 19:38:35

Comparing /work/SRC/openSUSE:Factory/ghc-hslua (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-hslua.new (New)


Package is ghc-hslua

Changes:

--- /work/SRC/openSUSE:Factory/ghc-hslua/ghc-hslua.changes  2015-04-10 
09:52:03.0 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-hslua.new/ghc-hslua.changes 2015-05-11 
19:48:50.0 +0200
@@ -1,0 +2,7 @@
+Tue Apr 21 11:57:18 UTC 2015 - mimi...@gmail.com
+
+- update to 0.3.13
+* `pushrawhsfunction` and `registerrawhsfunction` functions are added.
+* `luaL_ref` and `luaL_unref` functions are added.
+
+---

Old:

  hslua-0.3.9.tar.gz

New:

  hslua-0.3.13.tar.gz



Other differences:
--
++ ghc-hslua.spec ++
--- /var/tmp/diff_new_pack.WNsuQa/_old  2015-05-11 19:48:50.0 +0200
+++ /var/tmp/diff_new_pack.WNsuQa/_new  2015-05-11 19:48:50.0 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package ghc-hslua
 #
-# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -15,15 +15,16 @@
 # Please submit bugfixes or comments via http://bugs.opensuse.org/
 #
 
+
 %global pkg_name hslua
 
 Name:   ghc-hslua
-Version:0.3.9
+Version:0.3.13
 Release:0
 Summary:A Lua language interpreter embedding in Haskell
+License:MIT
 Group:  System/Libraries
 
-License:MIT
 Url:http://hackage.haskell.org/package/%{pkg_name}
 Source0:
http://hackage.haskell.org/packages/archive/%{pkg_name}/%{version}/%{pkg_name}-%{version}.tar.gz
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
@@ -33,7 +34,7 @@
 # Begin cabal-rpm deps:
 BuildRequires:  ghc-mtl-devel
 # End cabal-rpm deps
-%if 0%{?sles_version}
+%if 0%{?suse_version} == 1110
 BuildRequires:  lua-devel
 %else
 BuildRequires:  lua51-devel
@@ -66,31 +67,24 @@
 %prep
 %setup -q -n %{pkg_name}-%{version}
 
-
 %build
 %define cabal_configure_options -f system-lua
 %ghc_lib_build
 
-
 %install
 %ghc_lib_install
 
-
 %post devel
 %ghc_pkg_recache
 
-
 %postun devel
 %ghc_pkg_recache
 
-
 %files -f %{name}.files
 %defattr(-,root,root,-)
 %doc COPYRIGHT
 
-
 %files devel -f %{name}-devel.files
 %defattr(-,root,root,-)
 
-
 %changelog

++ hslua-0.3.9.tar.gz - hslua-0.3.13.tar.gz ++
 2415 lines of diff (skipped)