Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package ghc-hslua-cli for openSUSE:Factory 
checked in at 2024-07-22 17:16:26
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ghc-hslua-cli (Old)
 and      /work/SRC/openSUSE:Factory/.ghc-hslua-cli.new.17339 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "ghc-hslua-cli"

Mon Jul 22 17:16:26 2024 rev:4 rq:1188643 version:1.4.3

Changes:
--------
--- /work/SRC/openSUSE:Factory/ghc-hslua-cli/ghc-hslua-cli.changes      
2024-01-26 22:47:27.348605446 +0100
+++ /work/SRC/openSUSE:Factory/.ghc-hslua-cli.new.17339/ghc-hslua-cli.changes   
2024-07-22 17:17:16.479534822 +0200
@@ -1,0 +2,14 @@
+Fri Jun 28 09:49:39 UTC 2024 - Peter Simons <[email protected]>
+
+- Update hslua-cli to version 1.4.3.
+  ## hslua-cli-1.4.3
+
+  Release pending.
+
+  -   Include copyright notice when printing version info; i.e., the
+      behavior is now closer to that of the default `lua`
+      interpreter.
+
+  -   Avoid "redundant import" warning when compiling with GHC 9.10.
+
+-------------------------------------------------------------------

Old:
----
  hslua-cli-1.4.2.tar.gz

New:
----
  hslua-cli-1.4.3.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ ghc-hslua-cli.spec ++++++
--- /var/tmp/diff_new_pack.UCqZEZ/_old  2024-07-22 17:17:17.379570602 +0200
+++ /var/tmp/diff_new_pack.UCqZEZ/_new  2024-07-22 17:17:17.379570602 +0200
@@ -19,7 +19,7 @@
 %global pkg_name hslua-cli
 %global pkgver %{pkg_name}-%{version}
 Name:           ghc-%{pkg_name}
-Version:        1.4.2
+Version:        1.4.3
 Release:        0
 Summary:        Command-line interface for Lua
 License:        MIT

++++++ hslua-cli-1.4.2.tar.gz -> hslua-cli-1.4.3.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hslua-cli-1.4.2/CHANGELOG.md 
new/hslua-cli-1.4.3/CHANGELOG.md
--- old/hslua-cli-1.4.2/CHANGELOG.md    2001-09-09 03:46:40.000000000 +0200
+++ new/hslua-cli-1.4.3/CHANGELOG.md    2001-09-09 03:46:40.000000000 +0200
@@ -2,6 +2,16 @@
 
 `hslua-cli` uses [PVP Versioning](https://pvp.haskell.org).
 
+## hslua-cli-1.4.3
+
+Release pending.
+
+-   Include copyright notice when printing version info; i.e., the
+    behavior is now closer to that of the default `lua`
+    interpreter.
+
+-   Avoid "redundant import" warning when compiling with GHC 9.10.
+
 ## hslua-cli-1.4.2
 
 Released 2024-01-18.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hslua-cli-1.4.2/LICENSE new/hslua-cli-1.4.3/LICENSE
--- old/hslua-cli-1.4.2/LICENSE 2001-09-09 03:46:40.000000000 +0200
+++ new/hslua-cli-1.4.3/LICENSE 2001-09-09 03:46:40.000000000 +0200
@@ -1,4 +1,4 @@
-Copyright © 1994-2022 Lua.org, PUC-Rio.
+Copyright © 1994-2023 Lua.org, PUC-Rio.
 Copyright © 2007-2012 Gracjan Polak
 Copyright © 2012-2015 Ömer Sinan Ağacan
 Copyright © 2016-2024 Albert Krewinkel
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hslua-cli-1.4.2/hslua-cli.cabal 
new/hslua-cli-1.4.3/hslua-cli.cabal
--- old/hslua-cli-1.4.2/hslua-cli.cabal 2001-09-09 03:46:40.000000000 +0200
+++ new/hslua-cli-1.4.3/hslua-cli.cabal 2001-09-09 03:46:40.000000000 +0200
@@ -1,6 +1,6 @@
 cabal-version:       2.2
 name:                hslua-cli
-version:             1.4.2
+version:             1.4.3
 synopsis:            Command-line interface for Lua
 description:         Provides an embeddable command-line interface for Lua.
                      The interface is compatible with the standard Lua
@@ -24,8 +24,9 @@
                    , GHC == 9.0.2
                    , GHC == 9.2.8
                    , GHC == 9.4.8
-                   , GHC == 9.6.3
-                   , GHC == 9.8.1
+                   , GHC == 9.6.5
+                   , GHC == 9.8.2
+                   , GHC == 9.10.1
 
 source-repository head
   type:                git
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hslua-cli-1.4.2/src/HsLua/CLI.hs 
new/hslua-cli-1.4.3/src/HsLua/CLI.hs
--- old/hslua-cli-1.4.2/src/HsLua/CLI.hs        2001-09-09 03:46:40.000000000 
+0200
+++ new/hslua-cli-1.4.3/src/HsLua/CLI.hs        2001-09-09 03:46:40.000000000 
+0200
@@ -1,6 +1,7 @@
 {-# LANGUAGE CPP               #-}
 {-# LANGUAGE LambdaCase        #-}
 {-# LANGUAGE OverloadedStrings #-}
+{-# LANGUAGE PatternSynonyms   #-}
 {- |
 Module      : HsLua.CLI
 Copyright   : Copyright © 2017-2024 Albert Krewinkel
@@ -19,21 +20,24 @@
 import Control.Monad (unless, void, when, zipWithM_)
 import Data.Bifunctor (first)
 import Data.ByteString (ByteString)
-import Data.Foldable (foldl')
 import Data.Maybe (listToMaybe)
 import Data.Text (Text)
 import Foreign.C.String (withCString)
+import Lua (pattern LUA_COPYRIGHT)
 import HsLua.Core (LuaE, LuaError)
 import HsLua.REPL (Config (..), defaultConfig, repl, setup)
 import System.Console.GetOpt
 import System.Environment (lookupEnv)
+import qualified Data.Text as T
+import qualified Data.Text.IO as T
 import qualified Lua.Constants as Lua
 import qualified Lua.Primary as Lua
 import qualified HsLua.Core as Lua
-import qualified HsLua.Marshalling as Lua
-import qualified Data.Text as T
-import qualified Data.Text.IO as T
 import qualified HsLua.Core.Utf8 as UTF8
+import qualified HsLua.Marshalling as Lua
+#if !MIN_VERSION_base(4,20,0)
+import Data.Foldable (foldl')
+#endif
 
 #ifndef _WINDOWS
 import System.Posix.IO (stdOutput)
@@ -94,11 +98,10 @@
     }
 
 -- | Print version information to the terminal.
-showVersion :: LuaError e => Text -> LuaE e ()
+showVersion :: Text -> LuaE e ()
 showVersion extraInfo = do
-  _ <- Lua.getglobal "_VERSION"
-  versionString <- Lua.forcePeek $ Lua.peekText Lua.top `Lua.lastly` Lua.pop 1
-  Lua.liftIO . T.putStrLn $ versionString `T.append` extraInfo
+  let copyrightString = T.pack LUA_COPYRIGHT
+  Lua.liftIO . T.putStrLn $ copyrightString `T.append` extraInfo
 
 -- | Runs code given on the command line
 runCode :: LuaError e => LuaCode -> LuaE e ()
@@ -245,7 +248,7 @@
 
   , Option "i" []
     (NoArg $ \opt -> opt { optInteractive = True })
-    "interactive mode -- currently not supported"
+    "interactive mode"
 
   , Option "l" []
     (flip ReqArg "mod" $ \mod' opt ->

Reply via email to