Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package ghc-turtle for openSUSE:Factory checked in at 2021-12-19 17:34:51 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/ghc-turtle (Old) and /work/SRC/openSUSE:Factory/.ghc-turtle.new.2520 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ghc-turtle" Sun Dec 19 17:34:51 2021 rev:17 rq:934293 version:1.5.23 Changes: -------- --- /work/SRC/openSUSE:Factory/ghc-turtle/ghc-turtle.changes 2021-04-10 15:28:26.962454123 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-turtle.new.2520/ghc-turtle.changes 2021-12-19 17:35:08.276294583 +0100 @@ -1,0 +2,9 @@ +Sat Nov 20 17:29:42 UTC 2021 - [email protected] + +- Update turtle to version 1.5.23. + 1.5.23 + + * Add `fromIO` utility + * Build against GHC 9.0 / 9.2 + +------------------------------------------------------------------- Old: ---- turtle-1.5.22.tar.gz New: ---- turtle-1.5.23.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ghc-turtle.spec ++++++ --- /var/tmp/diff_new_pack.hSaRpn/_old 2021-12-19 17:35:08.672294862 +0100 +++ /var/tmp/diff_new_pack.hSaRpn/_new 2021-12-19 17:35:08.676294865 +0100 @@ -19,7 +19,7 @@ %global pkg_name turtle %bcond_with tests Name: ghc-%{pkg_name} -Version: 1.5.22 +Version: 1.5.23 Release: 0 Summary: Shell programming, Haskell-style License: BSD-3-Clause ++++++ turtle-1.5.22.tar.gz -> turtle-1.5.23.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/turtle-1.5.22/CHANGELOG.md new/turtle-1.5.23/CHANGELOG.md --- old/turtle-1.5.22/CHANGELOG.md 2021-04-01 23:53:16.000000000 +0200 +++ new/turtle-1.5.23/CHANGELOG.md 2001-09-09 03:46:40.000000000 +0200 @@ -1,3 +1,8 @@ +1.5.23 + +* Add `fromIO` utility +* Build against GHC 9.0 / 9.2 + 1.5.22 * Add new `update` utility diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/turtle-1.5.22/bench/Main.hs new/turtle-1.5.23/bench/Main.hs --- old/turtle-1.5.22/bench/Main.hs 2021-04-01 23:53:16.000000000 +0200 +++ new/turtle-1.5.23/bench/Main.hs 2001-09-09 03:46:40.000000000 +0200 @@ -2,7 +2,7 @@ module Main where import qualified Data.Text as Text -import Criterion.Main +import Test.Tasty.Bench import Turtle boundedNaive :: Int -> Int -> Pattern a -> Pattern [a] diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/turtle-1.5.22/src/Turtle/Shell.hs new/turtle-1.5.23/src/Turtle/Shell.hs --- old/turtle-1.5.22/src/Turtle/Shell.hs 2021-04-01 23:53:16.000000000 +0200 +++ new/turtle-1.5.23/src/Turtle/Shell.hs 2001-09-09 03:46:40.000000000 +0200 @@ -75,6 +75,7 @@ , select , liftIO , using + , fromIO ) where import Control.Applicative @@ -245,3 +246,20 @@ x' <- step x a k $! x' Data.Foldable.foldr step' done as $! begin ) + +-- | Convert an `IO` action that returns a `Maybe` into a `Shell` +fromIO :: IO (Maybe a) -> Shell a +fromIO io = + Shell + (\(FoldShell step begin done) -> do + let loop x = do + m <- io + case m of + Just a -> do + x' <- step x a + loop x' + Nothing -> do + done x + + loop begin + ) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/turtle-1.5.22/turtle.cabal new/turtle-1.5.23/turtle.cabal --- old/turtle-1.5.22/turtle.cabal 2021-04-01 23:53:16.000000000 +0200 +++ new/turtle-1.5.23/turtle.cabal 2001-09-09 03:46:40.000000000 +0200 @@ -1,5 +1,5 @@ Name: turtle -Version: 1.5.22 +Version: 1.5.23 Cabal-Version: >=1.10 Build-Type: Simple License: BSD3 @@ -39,8 +39,20 @@ then you should also check out the @Shelly@ library which provides similar functionality. Category: System + +Tested-With: + GHC == 9.2.1 + GHC == 9.0.1 + GHC == 8.10.7 + GHC == 8.8.4 + GHC == 8.6.5 + GHC == 8.4.4 + GHC == 8.2.2 + GHC == 8.0.2 + Extra-Source-Files: CHANGELOG.md + Source-Repository head Type: git Location: https://github.com/Gabriel439/Haskell-Turtle-Library @@ -48,10 +60,11 @@ Library HS-Source-Dirs: src Build-Depends: - base >= 4.6 && < 5 , + -- 2021-09-07: Turtle.Prelude uses GHC-8.0 features, so base >= 4.9 + base >= 4.9 && < 5 , ansi-wl-pprint >= 0.6 && < 0.7 , async >= 2.0.0.0 && < 2.3 , - bytestring >= 0.9.1.8 && < 0.11, + bytestring >= 0.9.1.8 && < 0.12, clock >= 0.4.1.2 && < 0.9 , containers >= 0.5.0.0 && < 0.7 , directory >= 1.3.1.0 && < 1.4 , @@ -66,8 +79,8 @@ streaming-commons < 0.3 , temporary < 1.4 , text >= 1.0.0 && < 1.3 , - time < 1.10, - transformers >= 0.2.0.0 && < 0.6 , + time < 1.13, + transformers >= 0.2.0.0 && < 0.7 , optparse-applicative >= 0.16 && < 0.17, optional-args >= 1.0 && < 2.0 , unix-compat >= 0.4 && < 0.6 @@ -75,9 +88,7 @@ Build-Depends: Win32 >= 2.2.0.1 && < 2.9 else Build-Depends: unix >= 2.5.1.0 && < 2.8 - if !impl(ghc >= 8.0) - Build-Depends: fail >= 4.9.0.0 && < 4.10, - semigroups >= 0.5.0 && < 0.20 + Exposed-Modules: Turtle, Turtle.Bytes, @@ -134,8 +145,6 @@ temporary, system-filepath >= 0.4, turtle - if !impl(ghc >= 8.0) - Build-Depends: fail benchmark bench Type: exitcode-stdio-1.0 @@ -144,10 +153,7 @@ GHC-Options: -O2 -Wall -threaded Default-Language: Haskell2010 Build-Depends: - base >= 4 && < 5 , - text < 1.3, + base >= 4 && < 5 , + tasty-bench >= 0.3.1 , + text < 1.3, turtle - if impl(ghc < 7.8) - Build-Depends: criterion >= 0.4 && < 1.1.4.0 - else - Build-Depends: criterion >= 0.4 && < 1.6
