Hello community, here is the log from the commit of package ghc-aeson-compat for openSUSE:Factory checked in at 2016-07-12 23:52:36 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/ghc-aeson-compat (Old) and /work/SRC/openSUSE:Factory/.ghc-aeson-compat.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ghc-aeson-compat" Changes: -------- --- /work/SRC/openSUSE:Factory/ghc-aeson-compat/ghc-aeson-compat.changes 2016-06-07 23:48:16.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-aeson-compat.new/ghc-aeson-compat.changes 2016-07-12 23:52:38.000000000 +0200 @@ -1,0 +2,8 @@ +Sun Jul 10 15:09:51 UTC 2016 - [email protected] + +- update to 0.3.5.1 +* value, value' and Parser are exported from Data.Aeson.Compat +* Use explicit export list. Now we are sure we don't break interface. +* Fix (.=) export regression introduced by 0.3.5.0 + +------------------------------------------------------------------- Old: ---- aeson-compat-0.3.4.0.tar.gz New: ---- aeson-compat-0.3.5.1.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ghc-aeson-compat.spec ++++++ --- /var/tmp/diff_new_pack.KywF1R/_old 2016-07-12 23:52:39.000000000 +0200 +++ /var/tmp/diff_new_pack.KywF1R/_new 2016-07-12 23:52:39.000000000 +0200 @@ -15,17 +15,18 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # + %global pkg_name aeson-compat %bcond_with tests Name: ghc-aeson-compat -Version: 0.3.4.0 +Version: 0.3.5.1 Release: 0 Summary: Compatibility layer for aeson +License: BSD-3-Clause Group: System/Libraries -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 # PATCH-FIX-OPENSUSE remove_nats.patch -- [email protected] @@ -83,33 +84,26 @@ %build %ghc_lib_build - %install %ghc_lib_install - %check %if %{with tests} %cabal test %endif - %post devel %ghc_pkg_recache - %postun devel %ghc_pkg_recache - %files -f %{name}.files %defattr(-,root,root,-) %doc LICENSE - %files devel -f %{name}-devel.files %defattr(-,root,root,-) %doc README.md - %changelog ++++++ aeson-compat-0.3.4.0.tar.gz -> aeson-compat-0.3.5.1.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/aeson-compat-0.3.4.0/CHANGELOG.md new/aeson-compat-0.3.5.1/CHANGELOG.md --- old/aeson-compat-0.3.4.0/CHANGELOG.md 2016-06-03 17:14:54.000000000 +0200 +++ new/aeson-compat-0.3.5.1/CHANGELOG.md 2016-07-05 22:47:04.000000000 +0200 @@ -1,3 +1,12 @@ +# 0.3.5.1. + +- Fix `(.=)` export regression introduced by 0.3.5.0 + +# 0.3.5.0 + +- Use explicit export list. Now we are sure we don't break interface. +- `value`, `value'` and `Parser` are exported from `Data.Aeson.Compat` + # 0.3.4.0 - Add `NominalDiffTime` instances diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/aeson-compat-0.3.4.0/aeson-compat.cabal new/aeson-compat-0.3.5.1/aeson-compat.cabal --- old/aeson-compat-0.3.4.0/aeson-compat.cabal 2016-06-03 17:14:54.000000000 +0200 +++ new/aeson-compat-0.3.5.1/aeson-compat.cabal 2016-07-05 22:46:18.000000000 +0200 @@ -3,7 +3,7 @@ -- see: https://github.com/sol/hpack name: aeson-compat -version: 0.3.4.0 +version: 0.3.5.1 synopsis: Compatibility layer for aeson description: Compatibility layer for @aeson@ category: Web diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/aeson-compat-0.3.4.0/src/Data/Aeson/Compat.hs new/aeson-compat-0.3.5.1/src/Data/Aeson/Compat.hs --- old/aeson-compat-0.3.4.0/src/Data/Aeson/Compat.hs 2016-06-03 17:14:54.000000000 +0200 +++ new/aeson-compat-0.3.5.1/src/Data/Aeson/Compat.hs 2016-07-05 22:46:09.000000000 +0200 @@ -17,21 +17,79 @@ -- * '.:?' works as in @aeson <0.10@ -- * '.:!' works as '.:?' in @aeson ==0.10@ -- * Orphan instances 'FromJSON' 'Day' and 'FromJSON' 'LocalTime' for @aeson <0.10@ +-- * 'Encoding' related functionality is not added. It's present only with @aeson >=0.10@ -- module Data.Aeson.Compat ( - -- * Generic decoding functions - decode, - decode', - decodeStrict, - decodeStrict', - AesonException(..), - -- * Either decoding functions - eitherDecode, eitherDecode', eitherDecodeStrict, eitherDecodeStrict', - -- * Operators - (.:?), (.:!), - -- * Re-exports - -- | Original 'Data.Aeson..:?' operator is not re-exported - module Data.Aeson, + -- * Encoding and decoding + -- ** Direct encoding + decode, + decode', + eitherDecode, + eitherDecode', + encode, + -- ** Variants for strict bytestrings + decodeStrict, + decodeStrict', + eitherDecodeStrict, + eitherDecodeStrict', + -- * Core JSON types + Value(..), +#if MIN_VERSION_aeson(0,10,0) + Encoding, + fromEncoding, +#endif + Array, + Object, + -- * Convenience types + DotNetTime(..), + -- * Type conversion + FromJSON(..), + Result(..), + fromJSON, + ToJSON(..), +#if MIN_VERSION_aeson(0,10,0) + KeyValue(..), +#else + (.=), +#endif + -- ** Generic JSON classes and options + GFromJSON(..), + GToJSON(..), +#if MIN_VERSION_aeson(0,11,0) + -- GToEncoding is introduced in 0.11.0.0 + GToEncoding(..), +#endif + genericToJSON, +#if MIN_VERSION_aeson(0,10,0) + genericToEncoding, +#endif + genericParseJSON, + defaultOptions, + + -- * Inspecting @'Value's@ + withObject, + withText, + withArray, + withNumber, + withScientific, + withBool, + -- * Constructors and accessors +#if MIN_VERSION_aeson(0,10,0) + Series, + pairs, + foldable, +#endif + (.:), + (.:?), + (.:!), + (.!=), + object, + -- * Parsing + json, + json', + value, + value', + Parser, ) where import Prelude () @@ -44,14 +102,15 @@ #endif ) -#if !MIN_VERSION_aeson (0,9,0) import Data.Aeson.Parser (value, value') + +#if !MIN_VERSION_aeson (0,9,0) import qualified Data.Attoparsec.ByteString as A import qualified Data.Attoparsec.ByteString.Char8 as A (skipSpace) import qualified Data.Attoparsec.Lazy as L #endif -import Control.Monad.Catch +import Control.Monad.Catch (MonadThrow (..), Exception) import Data.Aeson.Types hiding ((.:?)) import Data.ByteString as B import qualified Data.Scientific as Scientific diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/aeson-compat-0.3.4.0/test/Tests.hs new/aeson-compat-0.3.5.1/test/Tests.hs --- old/aeson-compat-0.3.4.0/test/Tests.hs 2016-06-03 17:14:54.000000000 +0200 +++ new/aeson-compat-0.3.5.1/test/Tests.hs 2016-07-05 22:48:52.000000000 +0200 @@ -1,6 +1,6 @@ {-# LANGUAGE CPP #-} {-# LANGUAGE OverloadedStrings #-} -module Main (main) where +module Main (main, ex) where import Prelude () import Prelude.Compat @@ -9,6 +9,7 @@ import Data.List.NonEmpty (NonEmpty) import Data.Proxy (Proxy) import Data.Tagged (Tagged) +import Data.Text (Text) import Data.Time (Day, LocalTime, NominalDiffTime) import Data.Version (Version) import Numeric.Natural (Natural) @@ -83,3 +84,10 @@ #else roundtripBroken10 = roundtrip #endif + +------------------------------------------------------------------------------- +-- tests that symbols are exported +------------------------------------------------------------------------------- + +ex :: (Text, Value) +ex = "foo" .= True
