Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package ghc-regex-compat for
openSUSE:Factory checked in at 2021-03-10 08:55:29
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ghc-regex-compat (Old)
and /work/SRC/openSUSE:Factory/.ghc-regex-compat.new.2378 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ghc-regex-compat"
Wed Mar 10 08:55:29 2021 rev:10 rq:877668 version:0.95.2.1
Changes:
--------
--- /work/SRC/openSUSE:Factory/ghc-regex-compat/ghc-regex-compat.changes
2020-12-22 11:45:19.569807796 +0100
+++
/work/SRC/openSUSE:Factory/.ghc-regex-compat.new.2378/ghc-regex-compat.changes
2021-03-10 08:57:32.890907121 +0100
@@ -1,0 +2,12 @@
+Sun Feb 21 12:47:52 UTC 2021 - [email protected]
+
+- Update regex-compat to version 0.95.2.1.
+ ## 0.95.2.1
+
+ - Allow `base-4.15` (GHC 9.0)
+
+ - Workaround for `{-# LANGUAGE Haskell2010 #-}` parser regression introduced
in GHC 9.0
+
+ - Optimization flag `-O2` has been removed
+
+-------------------------------------------------------------------
Old:
----
regex-compat-0.95.2.0.tar.gz
regex-compat.cabal
New:
----
regex-compat-0.95.2.1.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ ghc-regex-compat.spec ++++++
--- /var/tmp/diff_new_pack.ufQnDv/_old 2021-03-10 08:57:33.554907807 +0100
+++ /var/tmp/diff_new_pack.ufQnDv/_new 2021-03-10 08:57:33.558907811 +0100
@@ -1,7 +1,7 @@
#
# spec file for package ghc-regex-compat
#
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -18,13 +18,12 @@
%global pkg_name regex-compat
Name: ghc-%{pkg_name}
-Version: 0.95.2.0
+Version: 0.95.2.1
Release: 0
-Summary: Replaces/Enhances "Text.Regex"
+Summary: Replaces/enhances "Text.Regex"
License: BSD-3-Clause
URL: https://hackage.haskell.org/package/%{pkg_name}
Source0:
https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
-Source1:
https://hackage.haskell.org/package/%{pkg_name}-%{version}/revision/1.cabal#/%{pkg_name}.cabal
BuildRequires: ghc-Cabal-devel
BuildRequires: ghc-array-devel
BuildRequires: ghc-regex-base-devel
@@ -50,7 +49,6 @@
%prep
%autosetup -n %{pkg_name}-%{version}
-cp -p %{SOURCE1} %{pkg_name}.cabal
%build
%ghc_lib_build
++++++ regex-compat-0.95.2.0.tar.gz -> regex-compat-0.95.2.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/regex-compat-0.95.2.0/ChangeLog.md
new/regex-compat-0.95.2.1/ChangeLog.md
--- old/regex-compat-0.95.2.0/ChangeLog.md 2001-09-09 03:46:40.000000000
+0200
+++ new/regex-compat-0.95.2.1/ChangeLog.md 2001-09-09 03:46:40.000000000
+0200
@@ -1,6 +1,13 @@
See also http://pvp.haskell.org/faq
+## 0.95.2.1
+
+- Allow `base-4.15` (GHC 9.0)
+
+- Workaround for `{-# LANGUAGE Haskell2010 #-}` parser regression introduced
in GHC 9.0
+
+- Optimization flag `-O2` has been removed
+
## 0.95.2.0
- Declare `Text.Regex` module `Trustworthy` under SafeHaskell
-
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/regex-compat-0.95.2.0/Text/Regex.hs
new/regex-compat-0.95.2.1/Text/Regex.hs
--- old/regex-compat-0.95.2.0/Text/Regex.hs 2001-09-09 03:46:40.000000000
+0200
+++ new/regex-compat-0.95.2.1/Text/Regex.hs 2001-09-09 03:46:40.000000000
+0200
@@ -45,12 +45,12 @@
-- | Makes a regular expression, where the multi-line and
-- case-sensitive options can be changed from the default settings.
mkRegexWithOpts
- :: String -- ^ The regular expression to compile
- -> Bool -- ^ 'True' @\<=>@ @\'^\'@ and @\'$\'@ match the beginning and
+ :: String -- ^ The regular expression to compile.
+ -> Bool -- ^ 'True' iff @\'^\'@ and @\'$\'@ match the beginning and
-- end of individual lines respectively, and @\'.\'@ does /not/
-- match the newline character.
- -> Bool -- ^ 'True' @\<=>@ matching is case-sensitive
- -> Regex -- ^ Returns: the compiled regular expression
+ -> Bool -- ^ 'True' iff matching is case-sensitive.
+ -> Regex -- ^ Returns: the compiled regular expression.
mkRegexWithOpts s single_line case_sensitive
= let opt = (if single_line then (compNewline .|.) else id) .
@@ -58,10 +58,10 @@
compExtended
in makeRegexOpts opt defaultExecOpt s
--- | Match a regular expression against a string
+-- | Match a regular expression against a string.
matchRegex
- :: Regex -- ^ The regular expression
- -> String -- ^ The string to match against
+ :: Regex -- ^ The regular expression.
+ -> String -- ^ The string to match against.
-> Maybe [String] -- ^ Returns: @'Just' strs@ if the match succeeded
-- (and @strs@ is the list of subexpression matches),
-- or 'Nothing' otherwise.
@@ -70,8 +70,8 @@
-- | Match a regular expression against a string, returning more information
-- about the match.
matchRegexAll
- :: Regex -- ^ The regular expression
- -> String -- ^ The string to match against
+ :: Regex -- ^ The regular expression.
+ -> String -- ^ The string to match against.
-> Maybe ( String, String, String, [String] )
-- ^ Returns: 'Nothing' if the match failed, or:
--
@@ -82,15 +82,15 @@
matchRegexAll p str = matchM p str
-{- | Replaces every occurance of the given regexp with the replacement string.
+{- | Replaces every occurrence of the given regexp with the replacement string.
In the replacement string, @\"\\1\"@ refers to the first substring;
@\"\\2\"@ to the second, etc; and @\"\\0\"@ to the entire match.
@\"\\\\\\\\\"@ will insert a literal backslash.
This does not advance if the regex matches an empty string. This
-misfeature is here to match the behavior of the the original
-Text.Regex API.
+misfeature is here to match the behavior of the original
[email protected]@ API.
-}
subRegex :: Regex -- ^ Search pattern
@@ -111,16 +111,16 @@
pre = take (off-i) str
str' = drop (i'-i) str
x = read xstr
- in if null str' then \ m -> (pre++) . ((fst (m!x))++)
- else \ m -> (pre++) . ((fst (m!x))++) . compile i' str' rest m
+ in if null str' then \ m -> (pre ++) . (fst (m ! x) ++)
+ else \ m -> (pre ++) . (fst (m ! x) ++) . compile i' str' rest m
compiled :: MatchText String -> String -> String
compiled = compile 0 repl findrefs where
-- bre matches a backslash then capture either a backslash or some
digits
bre = mkRegex "\\\\(\\\\|[0-9]+)"
- findrefs = map (\m -> (fst (m!1),snd (m!0))) (matchAllText bre repl)
+ findrefs = map (\m -> (fst (m ! 1), snd (m ! 0))) (matchAllText bre
repl)
go _i str [] = str
go i str (m:ms) =
- let (_,(off,len)) = m!0
+ let (_, (off, len)) = m ! 0
i' = off+len
pre = take (off-i) str
str' = drop (i'-i) str
@@ -131,15 +131,15 @@
{- | Splits a string based on a regular expression. The regular expression
should identify one delimiter.
-This does not advance and produces an infinite list of [] if the regex
+This does not advance and produces an infinite list of @[]@ if the regex
matches an empty string. This misfeature is here to match the
-behavior of the the original Text.Regex API.
+behavior of the original @Text.Regex@ API.
-}
splitRegex :: Regex -> String -> [String]
splitRegex _ [] = []
splitRegex delim strIn =
- let matches = map (!0) (matchAll delim strIn)
+ let matches = map (! 0) (matchAll delim strIn)
go _i str [] = str : []
go i str ((off,len):rest) =
let i' = off+len
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/regex-compat-0.95.2.0/regex-compat.cabal
new/regex-compat-0.95.2.1/regex-compat.cabal
--- old/regex-compat-0.95.2.0/regex-compat.cabal 2001-09-09
03:46:40.000000000 +0200
+++ new/regex-compat-0.95.2.1/regex-compat.cabal 2001-09-09
03:46:40.000000000 +0200
@@ -1,31 +1,58 @@
cabal-version: 1.12
name: regex-compat
-version: 0.95.2.0
+version: 0.95.2.1
-build-type: Simple
+build-type: Simple
license: BSD3
license-file: LICENSE
copyright: Copyright (c) 2006, Christopher Kuklewicz
author: Christopher Kuklewicz
-maintainer: [email protected]
+maintainer:
+ Herbert Valerio Riedel <[email protected]>,
+ Andreas Abel
+homepage: https://wiki.haskell.org/Regular_expressions
bug-reports: https://github.com/hvr/regex-compat/issues
-synopsis: Replaces/Enhances "Text.Regex"
+synopsis: Replaces/enhances "Text.Regex"
category: Text
description:
One module compat layer over <//hackage.haskell.org/package/regex-posix
regex-posix> to replace "Text.Regex".
.
See also <https://wiki.haskell.org/Regular_expressions> for more information.
-extra-source-files: ChangeLog.md
+extra-source-files:
+ ChangeLog.md
+
+tested-with:
+ -- Haskell CI:
+ GHC == 7.0.4
+ GHC == 7.2.2
+ GHC == 7.4.2
+ GHC == 7.6.3
+ GHC == 7.8.4
+ GHC == 7.10.3
+ GHC == 8.0.2
+ GHC == 8.2.2
+ GHC == 8.4.4
+ GHC == 8.6.5
+ GHC == 8.8.4
+ GHC == 8.10.3
+ -- manually (AA, 2021-02-17):
+ -- GHC == 8.10.4
+ -- GHC == 9.0.1
source-repository head
type: git
location: https://github.com/hvr/regex-compat.git
+source-repository this
+ type: git
+ location: https://github.com/hvr/regex-compat.git
+ tag: v0.95.2.1
+
library
exposed-modules: Text.Regex
- build-depends: base >= 4.3 && < 4.14
+ build-depends: base >= 4.3 && < 4.16
, regex-base == 0.94.*
, regex-posix == 0.96.*
, array >= 0.3 && < 0.6
@@ -36,4 +63,4 @@
if impl(ghc >= 7.2)
default-extensions: Trustworthy
- ghc-options: -Wall
+ ghc-options: -Wall