Hello community, here is the log from the commit of package ghc-aeson for openSUSE:Factory checked in at 2017-02-11 01:40:38 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/ghc-aeson (Old) and /work/SRC/openSUSE:Factory/.ghc-aeson.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "ghc-aeson" Changes: -------- --- /work/SRC/openSUSE:Factory/ghc-aeson/ghc-aeson.changes 2016-10-22 13:21:56.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-aeson.new/ghc-aeson.changes 2017-02-11 01:40:38.681569140 +0100 @@ -1,0 +2,5 @@ +Thu Jan 26 16:20:17 UTC 2017 - psimons@suse.com + +- Update to version 0.11.3.0 with cabal2obs. + +------------------------------------------------------------------- Old: ---- aeson-0.11.2.1.tar.gz aeson.cabal New: ---- aeson-0.11.3.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ghc-aeson.spec ++++++ --- /var/tmp/diff_new_pack.YEaVbw/_old 2017-02-11 01:40:40.057375002 +0100 +++ /var/tmp/diff_new_pack.YEaVbw/_new 2017-02-11 01:40:40.057375002 +0100 @@ -1,7 +1,7 @@ # # spec file for package ghc-aeson # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -19,14 +19,13 @@ %global pkg_name aeson %bcond_with tests Name: ghc-%{pkg_name} -Version: 0.11.2.1 +Version: 0.11.3.0 Release: 0 Summary: Fast JSON parsing and encoding License: BSD-3-Clause Group: Development/Languages/Other 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-attoparsec-devel BuildRequires: ghc-bytestring-devel @@ -91,7 +90,6 @@ %prep %setup -q -n %{pkg_name}-%{version} -cp -p %{SOURCE1} %{pkg_name}.cabal %build %ghc_lib_build @@ -114,5 +112,6 @@ %files devel -f %{name}-devel.files %defattr(-,root,root,-) +%doc README.markdown changelog.md examples %changelog ++++++ aeson-0.11.2.1.tar.gz -> aeson-0.11.3.0.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/aeson-0.11.2.1/Data/Aeson/Encode/Builder.hs new/aeson-0.11.3.0/Data/Aeson/Encode/Builder.hs --- old/aeson-0.11.2.1/Data/Aeson/Encode/Builder.hs 2016-08-07 14:20:26.000000000 +0200 +++ new/aeson-0.11.3.0/Data/Aeson/Encode/Builder.hs 2017-01-24 18:07:40.000000000 +0100 @@ -181,12 +181,13 @@ !(T dh dl) = twoDigits d encodeYear y | y >= 1000 = B.integerDec y - | y > 0 = - let (ab,c) = fromIntegral y `quotRem` 10 - (a,b) = ab `quotRem` 10 - in BP.primBounded (ascii4 ('0',(digit a,(digit b,digit c)))) () - | otherwise = - error "Data.Aeson.Encode.Builder.day: years BCE not supported" + | y >= 0 = BP.primBounded (ascii4 (padYear y)) () + | y >= -999 = BP.primBounded (ascii5 ('-',padYear (- y))) () + | otherwise = B.integerDec y + padYear y = + let (ab,c) = fromIntegral y `quotRem` 10 + (a,b) = ab `quotRem` 10 + in ('0',(digit a,(digit b,digit c))) {-# INLINE day #-} timeOfDay :: TimeOfDay -> Builder diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/aeson-0.11.2.1/aeson.cabal new/aeson-0.11.3.0/aeson.cabal --- old/aeson-0.11.2.1/aeson.cabal 2016-08-07 14:20:26.000000000 +0200 +++ new/aeson-0.11.3.0/aeson.cabal 2017-01-24 18:13:56.000000000 +0100 @@ -1,5 +1,5 @@ name: aeson -version: 0.11.2.1 +version: 0.11.3.0 license: BSD3 license-file: LICENSE category: Text, Web, JSON diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/aeson-0.11.2.1/changelog.md new/aeson-0.11.3.0/changelog.md --- old/aeson-0.11.2.1/changelog.md 2016-08-07 14:20:26.000000000 +0200 +++ new/aeson-0.11.3.0/changelog.md 2017-01-24 18:13:50.000000000 +0100 @@ -1,5 +1,9 @@ For the latest version of this document, please see [https://github.com/bos/aeson/blob/master/changelog.md](https://github.com/bos/aeson/blob/master/changelog.md). +### 0.11.3.0 + +* Backported support for `Day`s BCE from aeson-1.1.0.0 + ### 0.11.2.0 * Enable `PolyKinds` to generalize `Proxy`, `Tagged`, and `Const` instances.