Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package ghc-hslua for openSUSE:Factory checked in at 2025-07-02 12:08:50 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/ghc-hslua (Old) and /work/SRC/openSUSE:Factory/.ghc-hslua.new.7067 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ghc-hslua" Wed Jul 2 12:08:50 2025 rev:29 rq:1289420 version:2.4.0 Changes: -------- --- /work/SRC/openSUSE:Factory/ghc-hslua/ghc-hslua.changes 2024-01-26 22:47:23.952483143 +0100 +++ /work/SRC/openSUSE:Factory/.ghc-hslua.new.7067/ghc-hslua.changes 2025-07-02 12:09:38.531075798 +0200 @@ -1,0 +2,13 @@ +Mon Jun 23 09:58:51 UTC 2025 - Peter Simons <psim...@suse.com> + +- Update hslua to version 2.4.0. + ## Dev + + Released 2025-06-23. + + - Require hslua-objectorientation-2.4.0 + + - Provide a full Lua app with Haskell-defined modules preloaded. + The app is only built if the `executable` flag is enabled. + +------------------------------------------------------------------- Old: ---- hslua-2.3.1.tar.gz New: ---- hslua-2.4.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ghc-hslua.spec ++++++ --- /var/tmp/diff_new_pack.8Jv8pJ/_old 2025-07-02 12:09:39.551119118 +0200 +++ /var/tmp/diff_new_pack.8Jv8pJ/_new 2025-07-02 12:09:39.555119289 +0200 @@ -1,7 +1,7 @@ # # spec file for package ghc-hslua # -# Copyright (c) 2024 SUSE LLC +# Copyright (c) 2025 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -20,7 +20,7 @@ %global pkgver %{pkg_name}-%{version} %bcond_with tests Name: ghc-%{pkg_name} -Version: 2.3.1 +Version: 2.4.0 Release: 0 Summary: Bindings to Lua, an embeddable scripting language License: MIT @@ -29,12 +29,6 @@ BuildRequires: ghc-Cabal-devel BuildRequires: ghc-base-devel BuildRequires: ghc-base-prof -BuildRequires: ghc-bytestring-devel -BuildRequires: ghc-bytestring-prof -BuildRequires: ghc-containers-devel -BuildRequires: ghc-containers-prof -BuildRequires: ghc-exceptions-devel -BuildRequires: ghc-exceptions-prof BuildRequires: ghc-hslua-aeson-devel BuildRequires: ghc-hslua-aeson-prof BuildRequires: ghc-hslua-classes-devel @@ -49,27 +43,21 @@ BuildRequires: ghc-hslua-packaging-prof BuildRequires: ghc-hslua-typing-devel BuildRequires: ghc-hslua-typing-prof -BuildRequires: ghc-mtl-devel -BuildRequires: ghc-mtl-prof BuildRequires: ghc-rpm-macros -BuildRequires: ghc-text-devel -BuildRequires: ghc-text-prof ExcludeArch: %{ix86} %if %{with tests} -BuildRequires: ghc-QuickCheck-devel -BuildRequires: ghc-QuickCheck-prof -BuildRequires: ghc-lua-arbitrary-devel -BuildRequires: ghc-lua-arbitrary-prof -BuildRequires: ghc-lua-devel -BuildRequires: ghc-lua-prof -BuildRequires: ghc-quickcheck-instances-devel -BuildRequires: ghc-quickcheck-instances-prof +BuildRequires: ghc-bytestring-devel +BuildRequires: ghc-bytestring-prof +BuildRequires: ghc-exceptions-devel +BuildRequires: ghc-exceptions-prof BuildRequires: ghc-tasty-devel BuildRequires: ghc-tasty-hslua-devel BuildRequires: ghc-tasty-hslua-prof BuildRequires: ghc-tasty-hunit-devel BuildRequires: ghc-tasty-hunit-prof BuildRequires: ghc-tasty-prof +BuildRequires: ghc-text-devel +BuildRequires: ghc-text-prof %endif %description @@ -79,7 +67,7 @@ It builds upon the /lua/ package, which allows to bundle a Lua interpreter with a Haskell program. -Example programs are can be found in the 'hslua-examples' subdir of the project +Example programs can be found in the 'hslua-examples' subdir of the project <https://github.com/hslua/hslua repository>. %package devel ++++++ hslua-2.3.1.tar.gz -> hslua-2.4.0.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/hslua-2.3.1/CHANGELOG.md new/hslua-2.4.0/CHANGELOG.md --- old/hslua-2.3.1/CHANGELOG.md 2001-09-09 03:46:40.000000000 +0200 +++ new/hslua-2.4.0/CHANGELOG.md 2001-09-09 03:46:40.000000000 +0200 @@ -2,6 +2,15 @@ `hslua` uses [PVP Versioning][]. +## Dev + +Released 2025-06-23. + +- Require hslua-objectorientation-2.4.0 + +- Provide a full Lua app with Haskell-defined modules preloaded. + The app is only built if the `executable` flag is enabled. + ## hslua-2.3.1 Released 2024-01-18. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/hslua-2.3.1/LICENSE new/hslua-2.4.0/LICENSE --- old/hslua-2.3.1/LICENSE 2001-09-09 03:46:40.000000000 +0200 +++ new/hslua-2.4.0/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-2.3.1/README.md new/hslua-2.4.0/README.md --- old/hslua-2.3.1/README.md 2001-09-09 03:46:40.000000000 +0200 +++ new/hslua-2.4.0/README.md 2001-09-09 03:46:40.000000000 +0200 @@ -28,7 +28,7 @@ software and embedded devices. This package provides Haskell bindings to Lua, enable coders to embed the language into their programs, making them scriptable. -HsLua ships with batteries included and includes Lua 5.4.4. Cabal +HsLua ships with batteries included and includes Lua 5.4.7. Cabal flags make it easy to compile against a system-wide Lua installation. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/hslua-2.3.1/app/hslua.hs new/hslua-2.4.0/app/hslua.hs --- old/hslua-2.3.1/app/hslua.hs 1970-01-01 01:00:00.000000000 +0100 +++ new/hslua-2.4.0/app/hslua.hs 2001-09-09 03:46:40.000000000 +0200 @@ -0,0 +1,46 @@ +{-# LANGUAGE OverloadedStrings #-} +{-# LANGUAGE TypeApplications #-} +{- | +Module : Main +Copyright : © 2022-2025 Albert Krewinkel +License : MIT +Maintainer : Albert Krewinkel <tar...@hslua.org> + +A Haskell-wrapped Lua interpreter with Haskell modules. +-} +module Main (main) where +import Control.Monad (when) +import HsLua.Core as Lua + (Exception, openlibs, pushboolean, registryindex, run, setfield) +import HsLua.Packaging (preloadModule) +import HsLua.CLI (EnvBehavior (IgnoreEnvVars), Settings (..), runStandalone) +import System.Environment (getArgs, getProgName) +import qualified HsLua.Module.Path as Path +import qualified HsLua.Module.System as System +import qualified HsLua.Module.Text as Text +import qualified HsLua.Module.Version as Version +import qualified HsLua.Module.Zip as Zip + +-- | Run a default Lua interpreter. +main :: IO () +main = do + let settings = Settings + { settingsVersionInfo = "" + , settingsRunner = \envBehavior action -> run $ do + when (envBehavior == IgnoreEnvVars) $ do + pushboolean True + setfield registryindex "LUA_NOENV" + openlibs + mapM_ preloadModule + [ Path.documentedModule + , System.documentedModule + , Text.documentedModule + , Version.documentedModule + , Zip.documentedModule + ] + action + , settingsHistory = Just ".hslua-history" + } + prg <- getProgName + args <- getArgs + runStandalone @Lua.Exception settings prg args diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/hslua-2.3.1/hslua.cabal new/hslua-2.4.0/hslua.cabal --- old/hslua-2.3.1/hslua.cabal 2001-09-09 03:46:40.000000000 +0200 +++ new/hslua-2.4.0/hslua.cabal 2001-09-09 03:46:40.000000000 +0200 @@ -1,6 +1,6 @@ cabal-version: 2.2 name: hslua -version: 2.3.1 +version: 2.4.0 synopsis: Bindings to Lua, an embeddable scripting language description: HsLua provides wrappers and helpers to bridge Haskell and <https://www.lua.org/ Lua>. @@ -8,7 +8,7 @@ It builds upon the /lua/ package, which allows to bundle a Lua interpreter with a Haskell program. . - Example programs are can be found in the @hslua-examples@ + Example programs can be found in the @hslua-examples@ subdir of the project <https://github.com/hslua/hslua repository>. homepage: https://hslua.org/ @@ -25,47 +25,41 @@ extra-source-files: README.md , CHANGELOG.md , test/lua/*.lua -tested-with: GHC == 8.4.4 - , GHC == 8.6.5 - , GHC == 8.8.4 +tested-with: GHC == 8.8.4 , GHC == 8.10.7 , GHC == 9.0.2 , GHC == 9.2.8 , GHC == 9.4.8 - , GHC == 9.6.3 - , GHC == 9.8.1 + , GHC == 9.6.7 + , GHC == 9.8.4 + , GHC == 9.10.2 + , GHC == 9.12.2 source-repository head type: git location: https://github.com/hslua/hslua.git +Flag executable + description: Compile `hslua` standalone executable. + default: False + common common-options default-language: Haskell2010 - build-depends: base >= 4.11 && < 5 - , bytestring >= 0.10.2 && < 0.13 - , containers >= 0.5.9 && < 0.8 - , exceptions >= 0.8 && < 0.11 - , hslua-aeson >= 2.3.1 && < 2.4 - , hslua-core >= 2.3.2 && < 2.4 - , hslua-classes >= 2.2.1 && < 2.4 - , hslua-marshalling >= 2.3.1 && < 2.4 - , hslua-objectorientation >= 2.3.1 && < 2.4 - , hslua-packaging >= 2.3.1 && < 2.4 - , hslua-typing >= 0.1.1 && < 0.2 - , mtl >= 2.2 && < 2.4 - , text >= 1.2 && < 2.2 + build-depends: base >= 4.11 && < 5 ghc-options: -Wall + -Wcpp-undef + -Werror=missing-home-modules + -Widentities -Wincomplete-record-updates + -Wincomplete-uni-patterns -Wnoncanonical-monad-instances + -Wpartial-fields -Wredundant-constraints - if impl(ghc >= 8.2) - ghc-options: -Wcpp-undef - -Werror=missing-home-modules - if impl(ghc >= 8.4) - ghc-options: -Widentities - -Wincomplete-uni-patterns - -Wpartial-fields - -fhide-source-paths + -fhide-source-paths + if impl(ghc >= 8.10) + ghc-options: -Wunused-packages + if impl(ghc >= 9.0) + ghc-options: -Winvalid-haddock library import: common-options @@ -89,6 +83,13 @@ , HsLua.Packaging.Rendering , HsLua.Typing hs-source-dirs: src + build-depends: hslua-aeson >= 2.3.1 && < 2.4 + , hslua-classes >= 2.2.1 && < 2.4 + , hslua-core >= 2.3.2 && < 2.4 + , hslua-marshalling >= 2.3.1 && < 2.4 + , hslua-objectorientation >= 2.4 && < 2.5 + , hslua-packaging >= 2.3.1 && < 2.4 + , hslua-typing >= 0.1.1 && < 0.2 test-suite test-hslua import: common-options @@ -99,16 +100,31 @@ other-modules: HsLuaTests , HsLua.UtilTests build-depends: hslua - -- The lua package is needed only to check for it's - -- version so we know whether to expect behavior of - -- Lua 5.3 or Lua 5.4. - , lua >= 2.0 - , lua-arbitrary >= 1.0 - , QuickCheck >= 2.7 - , quickcheck-instances >= 0.3 + , bytestring >= 0.10.2 && < 0.13 + , exceptions >= 0.8 && < 0.11 + , hslua-core >= 2.3.2 && < 2.4 , tasty-hslua - , tasty >= 0.11 - , tasty-hunit >= 0.9 + , tasty >= 0.11 + , tasty-hunit >= 0.9 + , text >= 1.2 && < 2.2 other-extensions: LambdaCase , OverloadedStrings , TypeApplications + +executable hslua + import: common-options + hs-source-dirs: app + main-is: hslua.hs + ghc-options: -rtsopts -with-rtsopts=-A8m -threaded + if flag(executable) + buildable: True + build-depends: hslua-cli + , hslua-core + , hslua-packaging + , hslua-module-path + , hslua-module-system + , hslua-module-text + , hslua-module-version + , hslua-module-zip + else + buildable: False