Hello community,
here is the log from the commit of package ghc-time-compat for openSUSE:Factory
checked in at 2020-05-11 13:36:32
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ghc-time-compat (Old)
and /work/SRC/openSUSE:Factory/.ghc-time-compat.new.2738 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ghc-time-compat"
Mon May 11 13:36:32 2020 rev:4 rq:801058 version:1.9.3
Changes:
--------
--- /work/SRC/openSUSE:Factory/ghc-time-compat/ghc-time-compat.changes
2020-01-03 17:36:08.987269960 +0100
+++
/work/SRC/openSUSE:Factory/.ghc-time-compat.new.2738/ghc-time-compat.changes
2020-05-11 13:36:38.160524200 +0200
@@ -1,0 +2,8 @@
+Wed May 6 06:54:11 UTC 2020 - [email protected]
+
+- Update time-compat to version 1.9.3.
+ Upstream added a new change log file in this release. With no
+ previous version to compare against, the automatic updater cannot
+ reliable determine the relevante entries for this release.
+
+-------------------------------------------------------------------
Old:
----
time-compat-1.9.2.2.tar.gz
time-compat.cabal
New:
----
time-compat-1.9.3.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ ghc-time-compat.spec ++++++
--- /var/tmp/diff_new_pack.yiMeJi/_old 2020-05-11 13:36:38.872525692 +0200
+++ /var/tmp/diff_new_pack.yiMeJi/_new 2020-05-11 13:36:38.876525701 +0200
@@ -19,13 +19,12 @@
%global pkg_name time-compat
%bcond_with tests
Name: ghc-%{pkg_name}
-Version: 1.9.2.2
+Version: 1.9.3
Release: 0
Summary: Compatibility package for time
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-base-orphans-devel
BuildRequires: ghc-deepseq-devel
@@ -64,7 +63,6 @@
%prep
%setup -q -n %{pkg_name}-%{version}
-cp -p %{SOURCE1} %{pkg_name}.cabal
%build
%ghc_lib_build
@@ -85,5 +83,6 @@
%license LICENSE
%files devel -f %{name}-devel.files
+%doc CHANGELOG.md
%changelog
++++++ time-compat-1.9.2.2.tar.gz -> time-compat-1.9.3.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/time-compat-1.9.2.2/CHANGELOG.md
new/time-compat-1.9.3/CHANGELOG.md
--- old/time-compat-1.9.2.2/CHANGELOG.md 1970-01-01 01:00:00.000000000
+0100
+++ new/time-compat-1.9.3/CHANGELOG.md 2001-09-09 03:46:40.000000000 +0200
@@ -0,0 +1,4 @@
+# 1.9.3
+
+- Include `pastMidnight` and `sinceMidnight` aliases (backported from
`time-1.10`)
+- Support `time-1.10`
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/time-compat-1.9.2.2/src/Data/Time/Format/Compat.hs
new/time-compat-1.9.3/src/Data/Time/Format/Compat.hs
--- old/time-compat-1.9.2.2/src/Data/Time/Format/Compat.hs 2001-09-09
03:46:40.000000000 +0200
+++ new/time-compat-1.9.3/src/Data/Time/Format/Compat.hs 2001-09-09
03:46:40.000000000 +0200
@@ -93,5 +93,30 @@
-> m t -- ^ Return the time value, or fail if the in
parseTimeM = Data.Time.Format.parseTimeM
#endif
+#endif
+
+#if MIN_VERSION_time(1,10,0)
+{-# DEPRECATED parseTime "use \"parseTimeM True\" instead" #-}
+parseTime :: ParseTime t =>
+ TimeLocale -- ^ Time locale.
+ -> String -- ^ Format string.
+ -> String -- ^ Input string.
+ -> Maybe t -- ^ The time value, or 'Nothing' if the input could
+ -- not be parsed using the given format.
+parseTime = parseTimeM True
+
+{-# DEPRECATED readTime "use \"parseTimeOrError True\" instead" #-}
+readTime :: ParseTime t =>
+ TimeLocale -- ^ Time locale.
+ -> String -- ^ Format string.
+ -> String -- ^ Input string.
+ -> t -- ^ The time value.
+readTime = parseTimeOrError True
+{-# DEPRECATED readsTime "use \"readSTime True\" instead" #-}
+readsTime :: ParseTime t =>
+ TimeLocale -- ^ Time locale.
+ -> String -- ^ Format string
+ -> ReadS t
+readsTime = readSTime True
#endif
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/time-compat-1.9.2.2/src/Data/Time/LocalTime/Compat.hs
new/time-compat-1.9.3/src/Data/Time/LocalTime/Compat.hs
--- old/time-compat-1.9.2.2/src/Data/Time/LocalTime/Compat.hs 2001-09-09
03:46:40.000000000 +0200
+++ new/time-compat-1.9.3/src/Data/Time/LocalTime/Compat.hs 2001-09-09
03:46:40.000000000 +0200
@@ -12,6 +12,7 @@
utcToLocalTimeOfDay,localToUTCTimeOfDay,
timeToTimeOfDay,timeOfDayToTime,
dayFractionToTimeOfDay,timeOfDayToDayFraction,
+ pastMidnight, sinceMidnight,
-- * CalendarDiffTime
CalendarDiffTime (..),
@@ -62,6 +63,16 @@
#endif
+#if !MIN_VERSION_time(1,10,0)
+-- | Same as 'timeToTimeOfDay'.
+pastMidnight :: DiffTime -> TimeOfDay
+pastMidnight = timeToTimeOfDay
+
+-- | Same as 'timeOfDayToTime'.
+sinceMidnight :: TimeOfDay -> DiffTime
+sinceMidnight = timeOfDayToTime
+#endif
+
-------------------------------------------------------------------------------
-- CalendarDiffTime
-------------------------------------------------------------------------------
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/time-compat-1.9.2.2/time-compat.cabal
new/time-compat-1.9.3/time-compat.cabal
--- old/time-compat-1.9.2.2/time-compat.cabal 2001-09-09 03:46:40.000000000
+0200
+++ new/time-compat-1.9.3/time-compat.cabal 2001-09-09 03:46:40.000000000
+0200
@@ -1,7 +1,7 @@
-cabal-version: 1.12
-name: time-compat
-version: 1.9.2.2
-synopsis: Compatibility package for time
+cabal-version: 1.12
+name: time-compat
+version: 1.9.3
+synopsis: Compatibility package for time
description:
This packages tries to compat as much of @time@ features as possible.
.
@@ -13,16 +13,28 @@
.
* @dayFractionToTimeOfDay@ on extreme values
-category: Time, Compatibility
-license: BSD3
-license-file: LICENSE
-maintainer: Oleg Grenrus <[email protected]>
-author: Ashley Yakeley
-homepage: https://github.com/phadej/time-compat
-bug-reports: https://github.com/phadej/time-compat/issues
-build-type: Simple
+category: Time, Compatibility
+license: BSD3
+license-file: LICENSE
+maintainer: Oleg Grenrus <[email protected]>
+author: Ashley Yakeley
+homepage: https://github.com/phadej/time-compat
+bug-reports: https://github.com/phadej/time-compat/issues
+build-type: Simple
+extra-source-files: CHANGELOG.md
tested-with:
- GHC ==8.8.1 || ==8.6.5 || ==8.4.4 || ==8.2.2 || ==8.0.2 || ==7.10.3 ||
==7.8.4 || ==7.6.3 || ==7.4.2 || ==7.2.2 || ==7.0.4
+ GHC ==7.0.4
+ || ==7.2.2
+ || ==7.4.2
+ || ==7.6.3
+ || ==7.8.4
+ || ==7.10.3
+ || ==8.0.2
+ || ==8.2.2
+ || ==8.4.4
+ || ==8.6.5
+ || ==8.8.3
+ || ==8.10.1
source-repository head
type: git
@@ -42,10 +54,10 @@
default-extensions: Trustworthy
build-depends:
- base >=4.3 && <4.14
+ base >=4.3 && <4.15
, base-orphans >=0.8.1 && <0.9
, deepseq >=1.3.0.0 && <1.4 || >=1.4.1.1 && <1.5
- , time >=1.2 && <1.3 || >=1.4 && <1.7 || >=1.8 && <1.9 ||
>=1.9.2 && <1.9.3
+ , time >=1.2 && <1.3 || >=1.4 && <1.7 || >=1.8 && <1.9 ||
>=1.9.2 && <1.9.4 || >=1.10 && <1.10.1
if flag(old-locale)
build-depends:
@@ -115,7 +127,7 @@
ghc-options: -Wall -fwarn-tabs
build-depends:
base
- , base-compat >=0.10.5 && <0.11
+ , base-compat >=0.10.5 && <0.12
, deepseq
, QuickCheck >=2.13 && <2.14
, tagged >=0.8.6 && <0.9