Hello community, here is the log from the commit of package ghc-hourglass for openSUSE:Factory checked in at 2018-09-03 10:34:41 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/ghc-hourglass (Old) and /work/SRC/openSUSE:Factory/.ghc-hourglass.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ghc-hourglass" Mon Sep 3 10:34:41 2018 rev:7 rq:632483 version:0.2.12 Changes: -------- --- /work/SRC/openSUSE:Factory/ghc-hourglass/ghc-hourglass.changes 2018-07-24 17:19:27.799075154 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-hourglass.new/ghc-hourglass.changes 2018-09-03 10:34:42.488608353 +0200 @@ -1,0 +2,9 @@ +Thu Aug 30 15:29:08 UTC 2018 - [email protected] + +- Update hourglass to version 0.2.12. + Upstream has edited the change log file since the last release in + a non-trivial way, i.e. they did more than just add a new entry + at the top. You can review the file at: + http://hackage.haskell.org/package/hourglass-0.2.12/src/CHANGELOG.md + +------------------------------------------------------------------- Old: ---- hourglass-0.2.11.tar.gz New: ---- hourglass-0.2.12.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ghc-hourglass.spec ++++++ --- /var/tmp/diff_new_pack.QTxreW/_old 2018-09-03 10:34:43.076609870 +0200 +++ /var/tmp/diff_new_pack.QTxreW/_new 2018-09-03 10:34:43.076609870 +0200 @@ -19,7 +19,7 @@ %global pkg_name hourglass %bcond_with tests Name: ghc-%{pkg_name} -Version: 0.2.11 +Version: 0.2.12 Release: 0 Summary: Simple performant time related library License: BSD-3-Clause ++++++ hourglass-0.2.11.tar.gz -> hourglass-0.2.12.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/hourglass-0.2.11/CHANGELOG.md new/hourglass-0.2.12/CHANGELOG.md --- old/hourglass-0.2.11/CHANGELOG.md 2018-02-04 18:54:42.000000000 +0100 +++ new/hourglass-0.2.12/CHANGELOG.md 2018-08-24 21:39:17.000000000 +0200 @@ -1,19 +1,3 @@ -## Version 0.2.11 (2018-02-04) - -- Add Zero UTC -- Avoid division by 0 -- Add support for ghc-8.4 alpha2 - -## Version 0.2.10 (2016-02-27) - -- Move towards Time. hierarchy -- Add some test -- Fix some issues - -## Version 0.2.9 (2015-04-01) - -- some tidy up - ## Version 0.2.8 (2015-01-07) - Fix test with time 1.5 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/hourglass-0.2.11/Time/Types.hs new/hourglass-0.2.12/Time/Types.hs --- old/hourglass-0.2.11/Time/Types.hs 2017-05-13 09:16:09.000000000 +0200 +++ new/hourglass-0.2.12/Time/Types.hs 2018-08-24 21:39:49.000000000 +0200 @@ -148,11 +148,10 @@ oneSecond = Elapsed $ Seconds 1 instance Real ElapsedP where - -- FIXME toRational (ElapsedP (Elapsed (Seconds s)) (NanoSeconds 0)) = fromIntegral s toRational (ElapsedP (Elapsed (Seconds s)) (NanoSeconds ns)) = - fromIntegral s + (1000000000 % fromIntegral ns) + fromIntegral s + (fromIntegral ns % 1000000000) -- | Month of the year data Month = diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/hourglass-0.2.11/hourglass.cabal new/hourglass-0.2.12/hourglass.cabal --- old/hourglass-0.2.11/hourglass.cabal 2018-02-04 18:55:31.000000000 +0100 +++ new/hourglass-0.2.12/hourglass.cabal 2018-08-24 21:45:22.000000000 +0200 @@ -1,5 +1,5 @@ Name: hourglass -Version: 0.2.11 +Version: 0.2.12 Synopsis: simple performant time related library Description: Simple time library focusing on simple but powerful and performant API diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/hourglass-0.2.11/tests/Tests.hs new/hourglass-0.2.12/tests/Tests.hs --- old/hourglass-0.2.11/tests/Tests.hs 2017-05-13 09:16:09.000000000 +0200 +++ new/hourglass-0.2.12/tests/Tests.hs 2018-08-24 21:42:17.000000000 +0200 @@ -10,6 +10,7 @@ import Test.Tasty.QuickCheck import Test.Tasty.HUnit +import Data.Ratio import Data.Word import Data.Int import Data.Hourglass @@ -229,6 +230,10 @@ let res = toRational (ElapsedP (Elapsed $ Seconds 0) (NanoSeconds 0)) ref = toRational 0 :: Rational in assertEqual "failed equality" ref res + , testCase "Real instance of ElapsedP (#33) (2)" $ + let res = toRational (ElapsedP (Elapsed $ Seconds 100) (NanoSeconds 1000000)) + ref = toRational 100 + (1 % 1000) :: Rational + in assertEqual "failed equality" ref res ] ] where toCalendarTest (i, (us, dt)) =
