commit ghc-aeson for openSUSE:Factory
Hello community, here is the log from the commit of package ghc-aeson for openSUSE:Factory checked in at 2020-10-23 15:13:24 Comparing /work/SRC/openSUSE:Factory/ghc-aeson (Old) and /work/SRC/openSUSE:Factory/.ghc-aeson.new.3463 (New) Package is "ghc-aeson" Fri Oct 23 15:13:24 2020 rev:32 rq:842736 version:1.5.4.1 Changes: --- /work/SRC/openSUSE:Factory/ghc-aeson/ghc-aeson.changes 2020-10-05 19:41:06.649668284 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-aeson.new.3463/ghc-aeson.changes 2020-10-23 15:13:29.938109676 +0200 @@ -1,0 +2,8 @@ +Tue Oct 6 08:56:45 UTC 2020 - psim...@suse.com + +- Update aeson to version 1.5.4.1. + 1.5.4.1 + * Use `Text.Encoding.decodeLatin1` to speed up ASCII string decoding, thanks to Dmitry Ivanov. + * Support `bytestring 0.11.*` and `th-abstraction 0.4.*`, thanks to Oleg Grenrus. + +--- Old: aeson-1.5.4.0.tar.gz New: aeson-1.5.4.1.tar.gz Other differences: -- ++ ghc-aeson.spec ++ --- /var/tmp/diff_new_pack.VpwSzk/_old 2020-10-23 15:13:31.126110249 +0200 +++ /var/tmp/diff_new_pack.VpwSzk/_new 2020-10-23 15:13:31.130110251 +0200 @@ -19,7 +19,7 @@ %global pkg_name aeson %bcond_with tests Name: ghc-%{pkg_name} -Version:1.5.4.0 +Version:1.5.4.1 Release:0 Summary:Fast JSON parsing and encoding License:BSD-3-Clause ++ aeson-1.5.4.0.tar.gz -> aeson-1.5.4.1.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/aeson-1.5.4.0/Data/Aeson/Parser/Internal.hs new/aeson-1.5.4.1/Data/Aeson/Parser/Internal.hs --- old/aeson-1.5.4.0/Data/Aeson/Parser/Internal.hs 2001-09-09 03:46:40.0 +0200 +++ new/aeson-1.5.4.1/Data/Aeson/Parser/Internal.hs 2001-09-09 03:46:40.0 +0200 @@ -322,7 +322,7 @@ -- not sure whether >= or bit hackery is faster -- perfectly, we shouldn't care, it's compiler job. s <- A.takeWhile (\w -> w /= DOUBLE_QUOTE && w /= BACKSLASH && w >= 0x20 && w < 0x80) - let txt = TE.decodeUtf8 s + let txt = unsafeDecodeASCII s mw <- A.peekWord8 case mw of Nothing -> fail "string without end" @@ -330,6 +330,12 @@ Just w | w < 0x20 -> fail "unescaped control character" _ -> jstringSlow s +-- | The input is assumed to contain only 7bit ASCII characters (i.e. @< 0x80@). +-- We use TE.decodeLatin1 here because TE.decodeASCII is currently (text-1.2.4.0) +-- deprecated and equal to TE.decodeUtf8, which is slower than TE.decodeLatin1. +unsafeDecodeASCII :: B.ByteString -> Text +unsafeDecodeASCII = TE.decodeLatin1 + jstringSlow :: B.ByteString -> Parser Text {-# INLINE jstringSlow #-} jstringSlow s' = {-# SCC "jstringSlow" #-} do diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/aeson-1.5.4.0/aeson.cabal new/aeson-1.5.4.1/aeson.cabal --- old/aeson-1.5.4.0/aeson.cabal 2001-09-09 03:46:40.0 +0200 +++ new/aeson-1.5.4.1/aeson.cabal 2001-09-09 03:46:40.0 +0200 @@ -1,5 +1,5 @@ name:aeson -version: 1.5.4.0 +version: 1.5.4.1 license: BSD3 license-file:LICENSE category:Text, Web, JSON @@ -100,7 +100,7 @@ -- GHC bundled libs build-depends: base >= 4.7.0.0 && < 5, -bytestring >= 0.10.4.0 && < 0.11, +bytestring >= 0.10.4.0 && < 0.12, containers >= 0.5.5.1 && < 0.7, deepseq >= 1.3.0.0 && < 1.5, ghc-prim >= 0.2 && < 0.8, @@ -143,7 +143,7 @@ scientific >= 0.3.6.2 && < 0.4, strict >= 0.4 && < 0.5, tagged >= 0.8.6&& < 0.9, -th-abstraction >= 0.2.8.0 && < 0.4, +th-abstraction >= 0.2.8.0 && < 0.5, these>= 1.1 && < 1.2, unordered-containers >= 0.2.10.0 && < 0.3, uuid-types >= 1.0.3&& < 1.1, @@ -217,7 +217,7 @@ dlist, Diff >= 0.4 && < 0.5, filepath, -generic-deriving >= 1.10 && < 1.14, +generic-deriving >= 1.10 && < 1.15, ghc-prim >= 0.2, hashable >= 1.2.4.0, scientific, diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/aeson-1.5.4.0/changelog.md new/aeson-1.5.4.1/changelog.md --- old/aeson-1.5.4.0/changelog.md 2001-09-09 03:46:40.0 +0200 +++ new/aeson-1.5.4.1/changelog.md 2001-09-09 03:46:40.0 +0200 @@ -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). + 1.5.4.1 +* Use `Text.Enco
commit ghc-aeson for openSUSE:Factory
Hello community, here is the log from the commit of package ghc-aeson for openSUSE:Factory checked in at 2020-10-05 19:40:20 Comparing /work/SRC/openSUSE:Factory/ghc-aeson (Old) and /work/SRC/openSUSE:Factory/.ghc-aeson.new.4249 (New) Package is "ghc-aeson" Mon Oct 5 19:40:20 2020 rev:31 rq:839524 version:1.5.4.0 Changes: --- /work/SRC/openSUSE:Factory/ghc-aeson/ghc-aeson.changes 2020-09-07 21:30:29.885246757 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-aeson.new.4249/ghc-aeson.changes 2020-10-05 19:41:06.649668284 +0200 @@ -1,0 +2,5 @@ +Sun Oct 4 18:06:49 UTC 2020 - Ondřej Súkup + +- add constraints for s390x and riscv64 + +--- New: _constraints Other differences: -- ++ _constraints ++ s390x riscv64 8
commit ghc-aeson for openSUSE:Factory
Hello community, here is the log from the commit of package ghc-aeson for openSUSE:Factory checked in at 2020-09-07 21:28:59 Comparing /work/SRC/openSUSE:Factory/ghc-aeson (Old) and /work/SRC/openSUSE:Factory/.ghc-aeson.new.3399 (New) Package is "ghc-aeson" Mon Sep 7 21:28:59 2020 rev:30 rq:832240 version:1.5.4.0 Changes: --- /work/SRC/openSUSE:Factory/ghc-aeson/ghc-aeson.changes 2020-08-28 21:24:43.948421198 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-aeson.new.3399/ghc-aeson.changes 2020-09-07 21:30:29.885246757 +0200 @@ -1,0 +2,10 @@ +Mon Aug 31 02:02:42 UTC 2020 - psim...@suse.com + +- Update aeson to version 1.5.4.0. + ### 1.5.4.0 + + * Add instances for `ToJSONKey` and `FromJSONKey` to `Const`, thanks to Dan Fithian. + * Add support for template-haskell 2.17, thanks to Galen Huntington. + * Documentation typo fix, thanks to Jean-Baptiste Mazon. + +--- Old: aeson-1.5.3.0.tar.gz New: aeson-1.5.4.0.tar.gz Other differences: -- ++ ghc-aeson.spec ++ --- /var/tmp/diff_new_pack.BR99QO/_old 2020-09-07 21:30:30.349246971 +0200 +++ /var/tmp/diff_new_pack.BR99QO/_new 2020-09-07 21:30:30.353246973 +0200 @@ -19,7 +19,7 @@ %global pkg_name aeson %bcond_with tests Name: ghc-%{pkg_name} -Version:1.5.3.0 +Version:1.5.4.0 Release:0 Summary:Fast JSON parsing and encoding License:BSD-3-Clause ++ aeson-1.5.3.0.tar.gz -> aeson-1.5.4.0.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/aeson-1.5.3.0/Data/Aeson/Types/FromJSON.hs new/aeson-1.5.4.0/Data/Aeson/Types/FromJSON.hs --- old/aeson-1.5.3.0/Data/Aeson/Types/FromJSON.hs 2001-09-09 03:46:40.0 +0200 +++ new/aeson-1.5.4.0/Data/Aeson/Types/FromJSON.hs 2001-09-09 03:46:40.0 +0200 @@ -1459,6 +1459,9 @@ {-# INLINE parseJSON #-} parseJSON = fmap Const . parseJSON +instance (FromJSON a, FromJSONKey a) => FromJSONKey (Const a b) where +fromJSONKey = fmap Const fromJSONKey + instance FromJSON1 Maybe where liftParseJSON _ _ Null = pure Nothing diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/aeson-1.5.3.0/Data/Aeson/Types/Internal.hs new/aeson-1.5.4.0/Data/Aeson/Types/Internal.hs --- old/aeson-1.5.3.0/Data/Aeson/Types/Internal.hs 2001-09-09 03:46:40.0 +0200 +++ new/aeson-1.5.4.0/Data/Aeson/Types/Internal.hs 2001-09-09 03:46:40.0 +0200 @@ -366,7 +366,7 @@ -- | -- --- The ordering is total, consistent with 'Eq' innstance. +-- The ordering is total, consistent with 'Eq' instance. -- However, nothing else about the ordering is specified, -- and it may change from environment to environment and version to version -- of either this package or its dependencies ('hashable' and 'unordered-containers'). @@ -426,7 +426,9 @@ where a' = V.toList a lift (Object o) = [| Object (H.fromList . map (first pack) $ o') |] where o' = map (first unpack) . H.toList $ o -#if MIN_VERSION_template_haskell(2,16,0) +#if MIN_VERSION_template_haskell(2,17,0) +liftTyped = TH.unsafeCodeCoerce . TH.lift +#elif MIN_VERSION_template_haskell(2,16,0) liftTyped = TH.unsafeTExpCoerce . TH.lift #endif diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/aeson-1.5.3.0/Data/Aeson/Types/ToJSON.hs new/aeson-1.5.4.0/Data/Aeson/Types/ToJSON.hs --- old/aeson-1.5.3.0/Data/Aeson/Types/ToJSON.hs2001-09-09 03:46:40.0 +0200 +++ new/aeson-1.5.4.0/Data/Aeson/Types/ToJSON.hs2001-09-09 03:46:40.0 +0200 @@ -1234,6 +1234,9 @@ toEncoding (Const x) = toEncoding x {-# INLINE toEncoding #-} +instance (ToJSON a, ToJSONKey a) => ToJSONKey (Const a b) where +toJSONKey = contramap getConst toJSONKey + instance ToJSON1 Maybe where liftToJSON t _ (Just a) = t a diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/aeson-1.5.3.0/aeson.cabal new/aeson-1.5.4.0/aeson.cabal --- old/aeson-1.5.3.0/aeson.cabal 2001-09-09 03:46:40.0 +0200 +++ new/aeson-1.5.4.0/aeson.cabal 2001-09-09 03:46:40.0 +0200 @@ -1,5 +1,5 @@ name:aeson -version: 1.5.3.0 +version: 1.5.4.0 license: BSD3 license-file:LICENSE category:Text, Web, JSON @@ -103,8 +103,8 @@ bytestring >= 0.10.4.0 && < 0.11, containers >= 0.5.5.1 && < 0.7, deepseq >= 1.3.0.0 && < 1.5, -ghc-prim >= 0.2 && < 0.7, -template-haskell >= 2.9.0.0 && < 2.17, +ghc-prim >= 0.2 && < 0.8, +templat
commit ghc-aeson for openSUSE:Factory
Hello community, here is the log from the commit of package ghc-aeson for openSUSE:Factory checked in at 2020-08-28 21:24:42 Comparing /work/SRC/openSUSE:Factory/ghc-aeson (Old) and /work/SRC/openSUSE:Factory/.ghc-aeson.new.3399 (New) Package is "ghc-aeson" Fri Aug 28 21:24:42 2020 rev:29 rq:829165 version:1.5.3.0 Changes: --- /work/SRC/openSUSE:Factory/ghc-aeson/ghc-aeson.changes 2020-08-18 12:24:35.227810972 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-aeson.new.3399/ghc-aeson.changes 2020-08-28 21:24:43.948421198 +0200 @@ -1,0 +2,5 @@ +Tue Aug 18 10:43:55 UTC 2020 - Peter Simons + +- Replace %setup -q with the more modern %autosetup macro. + +--- Other differences: -- ++ ghc-aeson.spec ++ --- /var/tmp/diff_new_pack.KSjrCS/_old 2020-08-28 21:24:44.524421471 +0200 +++ /var/tmp/diff_new_pack.KSjrCS/_new 2020-08-28 21:24:44.528421473 +0200 @@ -85,7 +85,7 @@ This package provides the Haskell %{pkg_name} library development files. %prep -%setup -q -n %{pkg_name}-%{version} +%autosetup -n %{pkg_name}-%{version} %build %ghc_lib_build
commit ghc-aeson for openSUSE:Factory
Hello community, here is the log from the commit of package ghc-aeson for openSUSE:Factory checked in at 2020-08-18 12:24:30 Comparing /work/SRC/openSUSE:Factory/ghc-aeson (Old) and /work/SRC/openSUSE:Factory/.ghc-aeson.new.3399 (New) Package is "ghc-aeson" Tue Aug 18 12:24:30 2020 rev:28 rq:825793 version:1.5.3.0 Changes: --- /work/SRC/openSUSE:Factory/ghc-aeson/ghc-aeson.changes 2020-06-19 17:07:40.213144805 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-aeson.new.3399/ghc-aeson.changes 2020-08-18 12:24:35.227810972 +0200 @@ -1,0 +2,10 @@ +Mon Aug 10 08:46:53 UTC 2020 - psim...@suse.com + +- Update aeson to version 1.5.3.0. + ### 1.5.3.0 + + * Add instances for types in `strict` and `data-fix` packages, thanks to Oleg Grenrus. + * CPP cleanup, thanks to Oleg Grenrus. + * Instances for `dlist`'s `Data.DList.DNonEmpty.DNonEmpty`, thanks to Oleg Grenrus. + +--- Old: aeson-1.5.2.0.tar.gz New: aeson-1.5.3.0.tar.gz Other differences: -- ++ ghc-aeson.spec ++ --- /var/tmp/diff_new_pack.kZPxjB/_old 2020-08-18 12:24:36.099811336 +0200 +++ /var/tmp/diff_new_pack.kZPxjB/_new 2020-08-18 12:24:36.103811338 +0200 @@ -19,7 +19,7 @@ %global pkg_name aeson %bcond_with tests Name: ghc-%{pkg_name} -Version:1.5.2.0 +Version:1.5.3.0 Release:0 Summary:Fast JSON parsing and encoding License:BSD-3-Clause @@ -30,12 +30,14 @@ BuildRequires: ghc-base-compat-batteries-devel BuildRequires: ghc-bytestring-devel BuildRequires: ghc-containers-devel +BuildRequires: ghc-data-fix-devel BuildRequires: ghc-deepseq-devel BuildRequires: ghc-dlist-devel BuildRequires: ghc-hashable-devel BuildRequires: ghc-primitive-devel BuildRequires: ghc-rpm-macros BuildRequires: ghc-scientific-devel +BuildRequires: ghc-strict-devel BuildRequires: ghc-tagged-devel BuildRequires: ghc-template-haskell-devel BuildRequires: ghc-text-devel ++ aeson-1.5.2.0.tar.gz -> aeson-1.5.3.0.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/aeson-1.5.2.0/Data/Aeson/Types/FromJSON.hs new/aeson-1.5.3.0/Data/Aeson/Types/FromJSON.hs --- old/aeson-1.5.2.0/Data/Aeson/Types/FromJSON.hs 2001-09-09 03:46:40.0 +0200 +++ new/aeson-1.5.3.0/Data/Aeson/Types/FromJSON.hs 2001-09-09 03:46:40.0 +0200 @@ -123,6 +123,10 @@ import qualified Data.Attoparsec.ByteString.Char8 as A (endOfInput, parseOnly, scientific) import qualified Data.ByteString.Lazy as L import qualified Data.DList as DList +#if MIN_VERSION_dlist(1,0,0) && __GLASGOW_HASKELL__ >=800 +import qualified Data.DList.DNonEmpty as DNE +#endif +import qualified Data.Fix as F import qualified Data.HashMap.Strict as H import qualified Data.HashSet as HashSet import qualified Data.IntMap as IntMap @@ -133,6 +137,7 @@ import qualified Data.Semigroup as Semigroup import qualified Data.Sequence as Seq import qualified Data.Set as Set +import qualified Data.Strict as S import qualified Data.Text as T import qualified Data.Text.Encoding as T import qualified Data.Text.Lazy as LT @@ -148,14 +153,7 @@ import qualified Data.Primitive.Array as PM import qualified Data.Primitive.SmallArray as PM import qualified Data.Primitive.Types as PM - -#if MIN_VERSION_primitive(0,6,4) -#if !MIN_VERSION_primitive(0,7,0) -import qualified Data.Primitive.UnliftedArray as PM -#endif import qualified Data.Primitive.PrimArray as PM -#endif - import Data.Coerce (Coercible, coerce) @@ -1760,8 +1758,24 @@ parseJSON = parseJSON1 {-# INLINE parseJSON #-} +#if MIN_VERSION_dlist(1,0,0) && __GLASGOW_HASKELL__ >=800 +-- | @since 1.5.3.0 +instance FromJSON1 DNE.DNonEmpty where +liftParseJSON p _ = withArray "DNonEmpty" $ +(>>= ne) . Tr.sequence . zipWith (parseIndexedJSON p) [0..] . V.toList + where +ne [] = fail "parsing DNonEmpty failed, unexpected empty list" +ne (x:xs) = pure (DNE.fromNonEmpty (x :| xs)) +{-# INLINE liftParseJSON #-} + +-- | @since 1.5.3.0 +instance (FromJSON a) => FromJSON (DNE.DNonEmpty a) where +parseJSON = parseJSON1 +{-# INLINE parseJSON #-} +#endif + --- --- tranformers - Functors +-- transformers - Functors --- instance FromJSON1 Identity where @@ -2002,16 +2016,9 @@ instance FromJSON a => FromJSON (PM.SmallArray a) where parseJSON = fmap Exts.fromList . parseJSON -#if MIN_VERSION_primitive(0,6,4) instance (PM.Prim a,FromJSON a) => FromJSON (PM.PrimArray a) where parseJSON = fmap E
commit ghc-aeson for openSUSE:Factory
Hello community, here is the log from the commit of package ghc-aeson for openSUSE:Factory checked in at 2020-06-19 17:07:37 Comparing /work/SRC/openSUSE:Factory/ghc-aeson (Old) and /work/SRC/openSUSE:Factory/.ghc-aeson.new.3606 (New) Package is "ghc-aeson" Fri Jun 19 17:07:37 2020 rev:27 rq:815025 version:1.5.2.0 Changes: --- /work/SRC/openSUSE:Factory/ghc-aeson/ghc-aeson.changes 2020-05-11 13:35:00.816320142 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-aeson.new.3606/ghc-aeson.changes 2020-06-19 17:07:40.213144805 +0200 @@ -1,0 +2,27 @@ +Mon Jun 15 02:00:21 UTC 2020 - psim...@suse.com + +- Update aeson to version 1.5.2.0. + ### 1.5.2.0 + + * Add `Ord Value` instance, thanks to Oleg Grenrus. + * Export `rejectUnknownFields` from `Data.Aeson` + +--- +Tue Jun 9 09:10:55 UTC 2020 - psim...@suse.com + +- Update aeson to version 1.5.1.0. + ### 1.5.1.0 + + * Add instances for `these`, thanks to Oleg Grenrus. + + ## 1.5.0.0 + + * Fix bug in `rejectUnknownFields` not respecting `fieldLabelModifier`, thanks to Markus Schirp. + * `GFromJSON` members are no longer exported from `Data.Aeson(.Types)`, if you are using `gParseJSON` consider switching to `gParseJSON'`, thanks to Oleg Grenrus. + * Aeson no longer accepts unescaped control characters, thanks to Oleg Grenrus. + * Remove `CoerceText` since GHC >=7.8 has `Coercible`, thanks to Oleg Grenrus. + * Rename the `GToJSON` class to `GToJSON'` and expose it, thanks to Oleg Grenrus. + + Closed tickets: https://github.com/bos/aeson/milestone/21 + +--- Old: aeson-1.4.7.1.tar.gz aeson.cabal New: aeson-1.5.2.0.tar.gz Other differences: -- ++ ghc-aeson.spec ++ --- /var/tmp/diff_new_pack.WoQ2qr/_old 2020-06-19 17:07:40.897146605 +0200 +++ /var/tmp/diff_new_pack.WoQ2qr/_new 2020-06-19 17:07:40.897146605 +0200 @@ -1,7 +1,7 @@ # # spec file for package ghc-aeson # -# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -19,13 +19,12 @@ %global pkg_name aeson %bcond_with tests Name: ghc-%{pkg_name} -Version:1.4.7.1 +Version:1.5.2.0 Release:0 Summary:Fast JSON parsing and encoding 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-attoparsec-devel BuildRequires: ghc-base-compat-batteries-devel @@ -41,6 +40,7 @@ BuildRequires: ghc-template-haskell-devel BuildRequires: ghc-text-devel BuildRequires: ghc-th-abstraction-devel +BuildRequires: ghc-these-devel BuildRequires: ghc-time-compat-devel BuildRequires: ghc-time-devel BuildRequires: ghc-unordered-containers-devel @@ -84,7 +84,6 @@ %prep %setup -q -n %{pkg_name}-%{version} -cp -p %{SOURCE1} %{pkg_name}.cabal %build %ghc_lib_build @@ -105,6 +104,6 @@ %license LICENSE %files devel -f %{name}-devel.files -%doc README.markdown changelog.md examples +%doc README.markdown changelog.md %changelog ++ aeson-1.4.7.1.tar.gz -> aeson-1.5.2.0.tar.gz ++ 3747 lines of diff (skipped)
commit ghc-aeson for openSUSE:Factory
Hello community, here is the log from the commit of package ghc-aeson for openSUSE:Factory checked in at 2020-05-11 13:33:06 Comparing /work/SRC/openSUSE:Factory/ghc-aeson (Old) and /work/SRC/openSUSE:Factory/.ghc-aeson.new.2738 (New) Package is "ghc-aeson" Mon May 11 13:33:06 2020 rev:26 rq:800998 version:1.4.7.1 Changes: --- /work/SRC/openSUSE:Factory/ghc-aeson/ghc-aeson.changes 2019-12-27 13:51:18.880571148 +0100 +++ /work/SRC/openSUSE:Factory/.ghc-aeson.new.2738/ghc-aeson.changes 2020-05-11 13:35:00.816320142 +0200 @@ -1,0 +2,67 @@ +Wed May 6 06:54:16 UTC 2020 - psim...@suse.com + +- Update aeson to version 1.4.7.1. + 1.4.7.1 + + * GHC 8.10 compatibility, thanks to Ryan Scott. + + ### 1.4.7.0 + + Long overdue release (once again), so there's quite a bit of stuff + included even though it's a "minor" release. Big thanks to all the + contributors, the project would not exist without you! + + Special thanks to Oleg Grenrus and Xia Li-Yao for reviewing tons + of stuff. + + New stuff: + + * Add `rejectUnknownFields` to Options which rejects unknown fields on +deserialization. Useful to find errors during development, but +enabling this should be considered a breaking change as previously +accepted inputs may now be rejected. Thanks to rmanne. + + ``` + instance FromJSON Foo where +parseJSON = gParseJSON defaultOptions { rejectUnknownFields = True } + ``` + + * `FromJSON` instance of `Ratio a` now parses numbers in addtion to +standard `{numerator=..., denumerator=...}` encoding. Thanks to +Aleksey Khudyakov. + + * Add more information to parse errors, including a sample of the +surrounding text. Hopefully this will lead to less "Failed to read: +satisfy" confusion! Thanks to Sasha Bogicevic. We expect some +downstream test suites to break because of this, apologies in +advance. Hopefully you will like the improvement anyway :-) + + * Add `parseFail` to `Data.Aeson.Types`. `parseFail = fail` but +doesn't require users to know about `MonadFail`. Thanks to Colin +Woodbury. + + * Make Template Haskell type family detection smarter when deriving +`ToJSON1` instances, thanks to Ryan Scott. + + * Optimize string parsing for the common case of strings without +escapes, thanks to Yuras. + + Misc: + + * Clean up compiler warnings and switch from base-compat to +base-compat-batteries. Thanks to Colin Woodbury & Oleg Grenrus. + + * Clarification & fixes to documentation regarding treatment of Maybe fields, thanks to Roman Cheplyaka. + + * Add documentation for internal development workflows. Thanks to Guru +Devanla. + + * Drop support for GHC < 7.8. We've chosen to support older GHCs as +long as it doesn't prevent us from adding new features, but now it +does! Thanks to Oleg Grenrus for the patch. + + * Allow generic-deriving 1.13 in test suite. + + * Some DRY fixes thanks to Mark Fajkus. + +--- Old: aeson-1.4.6.0.tar.gz New: aeson-1.4.7.1.tar.gz aeson.cabal Other differences: -- ++ ghc-aeson.spec ++ --- /var/tmp/diff_new_pack.RHz6XM/_old 2020-05-11 13:35:01.924322465 +0200 +++ /var/tmp/diff_new_pack.RHz6XM/_new 2020-05-11 13:35:01.928322474 +0200 @@ -1,7 +1,7 @@ # # spec file for package ghc-aeson # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 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,15 +19,16 @@ %global pkg_name aeson %bcond_with tests Name: ghc-%{pkg_name} -Version:1.4.6.0 +Version:1.4.7.1 Release:0 Summary:Fast JSON parsing and encoding 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-attoparsec-devel -BuildRequires: ghc-base-compat-devel +BuildRequires: ghc-base-compat-batteries-devel BuildRequires: ghc-bytestring-devel BuildRequires: ghc-containers-devel BuildRequires: ghc-deepseq-devel @@ -48,6 +49,7 @@ %if %{with tests} BuildRequires: ghc-Diff-devel BuildRequires: ghc-QuickCheck-devel +BuildRequires: ghc-base-compat-devel BuildRequires: ghc-base-orphans-devel BuildRequires: ghc-base16-bytestring-devel BuildRequires: ghc-directory-devel @@ -82,6 +84,7 @@ %prep %setup -q -n %{pkg_nam
commit ghc-aeson for openSUSE:Factory
Hello community, here is the log from the commit of package ghc-aeson for openSUSE:Factory checked in at 2019-12-27 13:51:16 Comparing /work/SRC/openSUSE:Factory/ghc-aeson (Old) and /work/SRC/openSUSE:Factory/.ghc-aeson.new.6675 (New) Package is "ghc-aeson" Fri Dec 27 13:51:16 2019 rev:25 rq:759329 version:1.4.6.0 Changes: --- /work/SRC/openSUSE:Factory/ghc-aeson/ghc-aeson.changes 2019-10-18 14:33:32.952221305 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-aeson.new.6675/ghc-aeson.changes 2019-12-27 13:51:18.880571148 +0100 @@ -1,0 +2,16 @@ +Wed Nov 13 03:02:25 UTC 2019 - psim...@suse.com + +- Update aeson to version 1.4.6.0. + ### 1.4.6.0 + + * Provide a clearer error message when a required tagKey for a constructor is missing, thanks to Guru Devanla. +The error message now looks like this: `Error in $: parsing Types.SomeType failed, expected Object with key "tag" containing one of ["nullary","unary","product","record","list"], key "tag" not found` + + * Add `formatPath` and `formatRelativePath` functions to turn a `JSONPath` into a `String`, thanks to Robbie McMichael + +--- +Fri Nov 8 16:13:10 UTC 2019 - Peter Simons + +- Drop obsolete group attributes. + +--- Old: aeson-1.4.5.0.tar.gz New: aeson-1.4.6.0.tar.gz Other differences: -- ++ ghc-aeson.spec ++ --- /var/tmp/diff_new_pack.ozzofh/_old 2019-12-27 13:51:19.556571628 +0100 +++ /var/tmp/diff_new_pack.ozzofh/_new 2019-12-27 13:51:19.556571628 +0100 @@ -19,11 +19,10 @@ %global pkg_name aeson %bcond_with tests Name: ghc-%{pkg_name} -Version:1.4.5.0 +Version:1.4.6.0 Release:0 Summary:Fast JSON parsing and encoding License:BSD-3-Clause -Group: Development/Libraries/Haskell URL:https://hackage.haskell.org/package/%{pkg_name} Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz BuildRequires: ghc-Cabal-devel @@ -73,7 +72,6 @@ %package devel Summary:Haskell %{pkg_name} library development files -Group: Development/Libraries/Haskell Requires: %{name} = %{version}-%{release} Requires: ghc-compiler = %{ghc_version} Requires(post): ghc-compiler = %{ghc_version} ++ aeson-1.4.5.0.tar.gz -> aeson-1.4.6.0.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/aeson-1.4.5.0/Data/Aeson/Types/FromJSON.hs new/aeson-1.4.6.0/Data/Aeson/Types/FromJSON.hs --- old/aeson-1.4.5.0/Data/Aeson/Types/FromJSON.hs 2001-09-09 03:46:40.0 +0200 +++ new/aeson-1.4.6.0/Data/Aeson/Types/FromJSON.hs 2001-09-09 03:46:40.0 +0200 @@ -892,7 +892,7 @@ -- E.g. @'explicitParseField' 'parseJSON1' :: ('FromJSON1' f, 'FromJSON' a) -> 'Object' -> 'Text' -> 'Parser' (f a)@ explicitParseField :: (Value -> Parser a) -> Object -> Text -> Parser a explicitParseField p obj key = case H.lookup key obj of -Nothing -> fail $ "key " ++ show key ++ " not present" +Nothing -> fail $ "key " ++ show key ++ " not found" Just v -> p v Key key {-# INLINE explicitParseField #-} @@ -951,6 +951,16 @@ contextType :: TypeName -> Parser a -> Parser a contextType = prependContext +-- | Add the tagKey that will be looked up while building an ADT +-- | Produce the error equivalent to +-- | Left "Error in $: parsing T failed, expected an object with keys "tag" and +-- | "contents", where "tag" i-- |s associated to one of ["Foo", "Bar"], +-- | The parser returned error was: could not find key "tag" +contextTag :: Text -> [String] -> Parser a -> Parser a +contextTag tagKey cnames = prependFailure + ("expected Object with key \"" ++ unpack tagKey ++ "\"" ++ + " containing one of " ++ show cnames ++ ", ") + -- | Add the name of the constructor being parsed to a parser's error messages. contextCons :: ConName -> TypeName -> Parser a -> Parser a contextCons cname tname = prependContext (showCons cname tname) @@ -1129,8 +1139,8 @@ retag (Tagged2 x) = Tagged2 x - -parseNonAllNullarySum :: ( FromPair arity f +parseNonAllNullarySum :: forall f c arity. + ( FromPair arity f , FromTaggedObject arity f , FromUntaggedValue arity f , ConstructorNamesf @@ -1140,7 +1150,7 @@ case sumEncoding opts of TaggedObject{..} -> withObject tname $ \obj -> do - tag <- contextType tname $ obj .: tag
commit ghc-aeson for openSUSE:Factory
Hello community, here is the log from the commit of package ghc-aeson for openSUSE:Factory checked in at 2019-10-18 14:33:32 Comparing /work/SRC/openSUSE:Factory/ghc-aeson (Old) and /work/SRC/openSUSE:Factory/.ghc-aeson.new.2352 (New) Package is "ghc-aeson" Fri Oct 18 14:33:32 2019 rev:24 rq:737186 version:1.4.5.0 Changes: --- /work/SRC/openSUSE:Factory/ghc-aeson/ghc-aeson.changes 2019-06-30 10:21:26.535614690 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-aeson.new.2352/ghc-aeson.changes 2019-10-18 14:33:32.952221305 +0200 @@ -1,0 +2,12 @@ +Tue Sep 10 02:02:48 UTC 2019 - psim...@suse.com + +- Update aeson to version 1.4.5.0. + ### 1.4.5.0 + + * Expose `()`, `JSONPath` and `JSONPathElement(..)` from `Data.Aeson.Types`. Previously only available through internal modules. Thanks to Luke Clifton. + + * Support for base-compat 0.11, thanks to Ryan Scott. + + * Travis build for GHC 8.8, thanks to Oleg Grenrus. + +--- Old: aeson-1.4.4.0.tar.gz New: aeson-1.4.5.0.tar.gz Other differences: -- ++ ghc-aeson.spec ++ --- /var/tmp/diff_new_pack.aSfC25/_old 2019-10-18 14:33:33.840218992 +0200 +++ /var/tmp/diff_new_pack.aSfC25/_new 2019-10-18 14:33:33.840218992 +0200 @@ -19,7 +19,7 @@ %global pkg_name aeson %bcond_with tests Name: ghc-%{pkg_name} -Version:1.4.4.0 +Version:1.4.5.0 Release:0 Summary:Fast JSON parsing and encoding License:BSD-3-Clause ++ aeson-1.4.4.0.tar.gz -> aeson-1.4.5.0.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/aeson-1.4.4.0/Data/Aeson/Types/FromJSON.hs new/aeson-1.4.5.0/Data/Aeson/Types/FromJSON.hs --- old/aeson-1.4.4.0/Data/Aeson/Types/FromJSON.hs 2019-06-25 02:26:22.0 +0200 +++ new/aeson-1.4.5.0/Data/Aeson/Types/FromJSON.hs 2001-09-09 03:46:40.0 +0200 @@ -5,7 +5,6 @@ {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE GADTs #-} {-# LANGUAGE MultiParamTypeClasses #-} -{-# LANGUAGE NamedFieldPuns #-} {-# LANGUAGE NoImplicitPrelude #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RecordWildCards #-} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/aeson-1.4.4.0/Data/Aeson/Types/Internal.hs new/aeson-1.4.5.0/Data/Aeson/Types/Internal.hs --- old/aeson-1.4.4.0/Data/Aeson/Types/Internal.hs 2019-06-25 02:26:22.0 +0200 +++ new/aeson-1.4.5.0/Data/Aeson/Types/Internal.hs 2001-09-09 03:46:40.0 +0200 @@ -99,6 +99,7 @@ import Data.Typeable (Typeable) import Data.Vector (Vector) import GHC.Generics (Generic) +import qualified Control.Monad as Monad import qualified Control.Monad.Fail as Fail import qualified Data.HashMap.Strict as H import qualified Data.Scientific as S @@ -152,7 +153,7 @@ fmap _ (Error err) = Error err {-# INLINE fmap #-} -instance Monad IResult where +instance Monad.Monad IResult where return = pure {-# INLINE return #-} @@ -169,7 +170,7 @@ fail err = IError [] err {-# INLINE fail #-} -instance Monad Result where +instance Monad.Monad Result where return = pure {-# INLINE return #-} @@ -288,7 +289,7 @@ -> f r } -instance Monad Parser where +instance Monad.Monad Parser where m >>= g = Parser $ \path kf ks -> let ks' a = runParser (g a) path kf ks in runParser m path kf ks' {-# INLINE (>>=) #-} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/aeson-1.4.4.0/Data/Aeson/Types/ToJSON.hs new/aeson-1.4.5.0/Data/Aeson/Types/ToJSON.hs --- old/aeson-1.4.4.0/Data/Aeson/Types/ToJSON.hs2019-06-25 02:26:22.0 +0200 +++ new/aeson-1.4.5.0/Data/Aeson/Types/ToJSON.hs2001-09-09 03:46:40.0 +0200 @@ -5,7 +5,6 @@ {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE FunctionalDependencies #-} {-# LANGUAGE GADTs #-} -{-# LANGUAGE NamedFieldPuns #-} {-# LANGUAGE NoImplicitPrelude #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE PatternGuards #-} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/aeson-1.4.4.0/Data/Aeson/Types.hs new/aeson-1.4.5.0/Data/Aeson/Types.hs --- old/aeson-1.4.4.0/Data/Aeson/Types.hs 2019-06-25 02:26:22.0 +0200 +++ new/aeson-1.4.5.0/Data/Aeson/Types.hs 2001-09-09 03:46:40.0 +0200 @@ -136,6 +136,11 @@ , JSONKeyOptions , keyModifier , defaultJSONKeyOptions + +-- * Parsing context +, () +, JSONPath +, JSONPathElement(..) ) where import Prelude.Compat diff -urN '--exclude=CVS' '--exclude=.cvsignore' '-
commit ghc-aeson for openSUSE:Factory
Hello community, here is the log from the commit of package ghc-aeson for openSUSE:Factory checked in at 2019-06-30 10:21:25 Comparing /work/SRC/openSUSE:Factory/ghc-aeson (Old) and /work/SRC/openSUSE:Factory/.ghc-aeson.new.4615 (New) Package is "ghc-aeson" Sun Jun 30 10:21:25 2019 rev:23 rq:712499 version:1.4.4.0 Changes: --- /work/SRC/openSUSE:Factory/ghc-aeson/ghc-aeson.changes 2019-05-09 10:09:44.781085815 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-aeson.new.4615/ghc-aeson.changes 2019-06-30 10:21:26.535614690 +0200 @@ -1,0 +2,39 @@ +Tue Jun 25 02:02:15 UTC 2019 - psim...@suse.com + +- Update aeson to version 1.4.4.0. + ### 1.4.4.0 + + **New features**: + + * Adds a parameterized parser `jsonWith` that can be used to choose how to handle duplicate keys in objects, thanks to Xia Li-Yao. + + * Add generic implementations of `FromJSONKey` and `ToJSONKey`, thanks to Xia Li-Yao. Example: + + ```haskell + data Foo = Bar +deriving Generic + + opts :: JSONKeyOptions + opts = defaultJSONKeyOptions { keyModifier = toLower } + + instance ToJSONKey Foo where +toJSONKey = genericToJSONKey opts + + instance FromJSONKey Foo where +fromJSONKey = genericFromJSONKey opts + ``` + + **Minor**: + * aeson now uses `time-compat` instead of `time-locale-compat`, thanks to Oleg Grenrus. + * Prepare for `MonadFail` breakages in GHC 8.8, thanks to Oleg Grenrus. + * Require `bytestring >= 0.10.8.1` for newer GHCs to avoid build failures, thanks to Oleg Grenrus. + * Support `primitive 0.7.*`, thanks to Adam Bergmark. + * Allow `semigroups 0.19.*` and `hashable 1.3.*`, thanks to Oleg Grenrus. + * Fix a typo in the error message when parsing `NonEmpty`, thanks to Colin Woodbury. + * Document surprising behavior when using `omitNothingFields` with type variables, thanks to Xia Li-Yao. + + **Internal changes**: + * Code cleanup by Oleg Grenrus + * Fix dependencies of the benchmarks on older GHC's, thanks to Xia Li-Yao. + +--- Old: aeson-1.4.3.0.tar.gz New: aeson-1.4.4.0.tar.gz Other differences: -- ++ ghc-aeson.spec ++ --- /var/tmp/diff_new_pack.dYqMyI/_old 2019-06-30 10:21:27.019615442 +0200 +++ /var/tmp/diff_new_pack.dYqMyI/_new 2019-06-30 10:21:27.023615448 +0200 @@ -19,7 +19,7 @@ %global pkg_name aeson %bcond_with tests Name: ghc-%{pkg_name} -Version:1.4.3.0 +Version:1.4.4.0 Release:0 Summary:Fast JSON parsing and encoding License:BSD-3-Clause @@ -41,8 +41,8 @@ BuildRequires: ghc-template-haskell-devel BuildRequires: ghc-text-devel BuildRequires: ghc-th-abstraction-devel +BuildRequires: ghc-time-compat-devel BuildRequires: ghc-time-devel -BuildRequires: ghc-time-locale-compat-devel BuildRequires: ghc-unordered-containers-devel BuildRequires: ghc-uuid-types-devel BuildRequires: ghc-vector-devel ++ aeson-1.4.3.0.tar.gz -> aeson-1.4.4.0.tar.gz ++ 1726 lines of diff (skipped)
commit ghc-aeson for openSUSE:Factory
Hello community, here is the log from the commit of package ghc-aeson for openSUSE:Factory checked in at 2019-05-09 10:09:43 Comparing /work/SRC/openSUSE:Factory/ghc-aeson (Old) and /work/SRC/openSUSE:Factory/.ghc-aeson.new.5148 (New) Package is "ghc-aeson" Thu May 9 10:09:43 2019 rev:22 rq:700194 version:1.4.3.0 Changes: --- /work/SRC/openSUSE:Factory/ghc-aeson/ghc-aeson.changes 2019-02-17 12:19:50.132225390 +0100 +++ /work/SRC/openSUSE:Factory/.ghc-aeson.new.5148/ghc-aeson.changes 2019-05-09 10:09:44.781085815 +0200 @@ -1,0 +2,18 @@ +Tue Apr 30 09:23:03 UTC 2019 - psim...@suse.com + +- Update aeson to version 1.4.3.0. + ### 1.4.3.0 + * Improve error messages for FromJSON in existing instances and GHC Generic implementation. Thanks to Xia Li-Yao & Igor Pashev. + * Tweak error-reporting combinators and their documentation. Thanks to Xia Li-Yao. +* `typeMismatch` is now about comparing JSON types (i.e., the expected and actual names of the Value constructor). +* `withObject` and other `with*` combinators now also mention the JSON types they expect +* New `unexpected` and `prependFailure` combinators. + * Add `Contravariant` `ToJSONKeyFunction` instance. Thanks to Oleg Grenrus. + * Add `KeyValue` instance for `Object`. Thanks to Robert Hensing. + * Improve performance when parsing certain large numbers, thanks to Oleg Grenrus. + * Add `Data.Aeson.QQ.Simple` - A limited version of aeson-qq. Thanks to Oleg Grenrus. + * Exposes internal helper functions like ``, `JSONPath`, and `parseIndexedJSON` from `Data.Aeson` module. Thanks to Abid Uzair. + * Better error messages when there are syntax errors parsing objects and arrays. Thanks to Fintan Halpenny. + * Support building with `th-abstraction-0.3.0.0` or later. Thanks to Ryan Scott. + +--- Old: aeson-1.4.2.0.tar.gz aeson.cabal New: aeson-1.4.3.0.tar.gz Other differences: -- ++ ghc-aeson.spec ++ --- /var/tmp/diff_new_pack.EHgIMm/_old 2019-05-09 10:09:46.077089526 +0200 +++ /var/tmp/diff_new_pack.EHgIMm/_new 2019-05-09 10:09:46.105089607 +0200 @@ -19,14 +19,13 @@ %global pkg_name aeson %bcond_with tests Name: ghc-%{pkg_name} -Version:1.4.2.0 +Version:1.4.3.0 Release:0 Summary:Fast JSON parsing and encoding License:BSD-3-Clause Group: Development/Libraries/Haskell 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-base-compat-devel @@ -48,6 +47,7 @@ BuildRequires: ghc-uuid-types-devel BuildRequires: ghc-vector-devel %if %{with tests} +BuildRequires: ghc-Diff-devel BuildRequires: ghc-QuickCheck-devel BuildRequires: ghc-base-orphans-devel BuildRequires: ghc-base16-bytestring-devel @@ -58,6 +58,7 @@ BuildRequires: ghc-integer-logarithms-devel BuildRequires: ghc-quickcheck-instances-devel BuildRequires: ghc-tasty-devel +BuildRequires: ghc-tasty-golden-devel BuildRequires: ghc-tasty-hunit-devel BuildRequires: ghc-tasty-quickcheck-devel %endif @@ -83,7 +84,6 @@ %prep %setup -q -n %{pkg_name}-%{version} -cp -p %{SOURCE1} %{pkg_name}.cabal %build %ghc_lib_build ++ aeson-1.4.2.0.tar.gz -> aeson-1.4.3.0.tar.gz ++ 3359 lines of diff (skipped)
commit ghc-aeson for openSUSE:Factory
Hello community, here is the log from the commit of package ghc-aeson for openSUSE:Factory checked in at 2019-02-17 12:19:48 Comparing /work/SRC/openSUSE:Factory/ghc-aeson (Old) and /work/SRC/openSUSE:Factory/.ghc-aeson.new.28833 (New) Package is "ghc-aeson" Sun Feb 17 12:19:48 2019 rev:21 rq:674293 version:1.4.2.0 Changes: --- /work/SRC/openSUSE:Factory/ghc-aeson/ghc-aeson.changes 2018-12-06 12:16:47.605553528 +0100 +++ /work/SRC/openSUSE:Factory/.ghc-aeson.new.28833/ghc-aeson.changes 2019-02-17 12:19:50.132225390 +0100 @@ -1,0 +2,5 @@ +Sat Jan 19 12:33:33 UTC 2019 - Peter Simons + +- Update Cabal build instructions for more accurate dependencies. + +--- New: aeson.cabal Other differences: -- ++ ghc-aeson.spec ++ --- /var/tmp/diff_new_pack.B0Zzuh/_old 2019-02-17 12:19:51.100225124 +0100 +++ /var/tmp/diff_new_pack.B0Zzuh/_new 2019-02-17 12:19:51.104225123 +0100 @@ -1,7 +1,7 @@ # # spec file for package ghc-aeson # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 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 @@ -26,6 +26,7 @@ Group: Development/Libraries/Haskell 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-base-compat-devel @@ -82,6 +83,7 @@ %prep %setup -q -n %{pkg_name}-%{version} +cp -p %{SOURCE1} %{pkg_name}.cabal %build %ghc_lib_build ++ aeson.cabal ++ name:aeson version: 1.4.2.0 x-revision: 1 license: BSD3 license-file:LICENSE category:Text, Web, JSON copyright: (c) 2011-2016 Bryan O'Sullivan (c) 2011 MailRank, Inc. author: Bryan O'Sullivan maintainer: Adam Bergmark stability: experimental tested-with: GHC == 7.4.2, GHC == 7.6.3, GHC == 7.8.4, GHC == 7.10.3, GHC == 8.0.1 synopsis:Fast JSON parsing and encoding cabal-version: >= 1.10 homepage:https://github.com/bos/aeson bug-reports: https://github.com/bos/aeson/issues build-type: Simple description: A JSON parsing and encoding library optimized for ease of use and high performance. . To get started, see the documentation for the @Data.Aeson@ module below. . (A note on naming: in Greek mythology, Aeson was the father of Jason.) extra-source-files: *.yaml README.markdown benchmarks/*.cabal benchmarks/*.hs benchmarks/*.py benchmarks/Compare/*.hs benchmarks/Makefile benchmarks/Typed/*.hs benchmarks/json-data/*.json cbits/*.c changelog.md examples/*.cabal examples/*.hs examples/Twitter/*.hs ffi/Data/Aeson/Parser/*.hs include/*.h tests/JSONTestSuite/test_parsing/*.json tests/JSONTestSuite/test_transform/*.json pure/Data/Aeson/Parser/*.hs flag developer description: operate in developer mode default: False manual: True flag fast description: compile without optimizations default: False manual: True flag bytestring-builder description: Depend on the bytestring-builder package for backwards compatibility. default: False manual: False flag cffi description: Controls whether to include c-ffi bits or pure haskell. Default to False for security. default: False manual: True library default-language: Haskell2010 hs-source-dirs: . attoparsec-iso8601/ exposed-modules: Data.Aeson Data.Aeson.Encoding Data.Aeson.Parser Data.Aeson.Text Data.Aeson.Types Data.Aeson.TH Data.Aeson.QQ.Simple Data.Aeson.Encoding.Internal Data.Aeson.Internal Data.Aeson.Internal.Time Data.Aeson.Parser.Internal -- Deprecated modules exposed-modules: Data.Aeson.Encode other-modules: Data.Aeson.Compat Data.Aeson.Encoding.Builder Data.Aeson.Internal.Functions Data.Aeson.Parser.Unescape Data.Aeson.Parser.Time Data.Aeson.Types.FromJSON Data.Aeson.Types.Generic Data.Aeson.Types.ToJSON Data.Aeson.Types.Class Data.Aeson.Types.Internal Data.Attoparsec.Time Data.Attoparsec.Time.Internal -- GHC bundled libs build-depends: base >= 4.5.0.0 && < 5, containers >= 0.4.2.1 && < 0.7, deepseq >= 1.3.0.0 && < 1.5, ghc-prim >= 0.2
commit ghc-aeson for openSUSE:Factory
Hello community, here is the log from the commit of package ghc-aeson for openSUSE:Factory checked in at 2018-12-06 12:16:47 Comparing /work/SRC/openSUSE:Factory/ghc-aeson (Old) and /work/SRC/openSUSE:Factory/.ghc-aeson.new.19453 (New) Package is "ghc-aeson" Thu Dec 6 12:16:47 2018 rev:20 rq:653440 version:1.4.2.0 Changes: --- /work/SRC/openSUSE:Factory/ghc-aeson/ghc-aeson.changes 2018-10-25 08:14:32.820117080 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-aeson.new.19453/ghc-aeson.changes 2018-12-06 12:16:47.605553528 +0100 @@ -1,0 +2,9 @@ +Sun Nov 25 03:01:12 UTC 2018 - psim...@suse.com + +- Update aeson to version 1.4.2.0. + 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/aeson-1.4.2.0/src/changelog.md + +--- Old: aeson-1.4.1.0.tar.gz aeson.cabal New: aeson-1.4.2.0.tar.gz Other differences: -- ++ ghc-aeson.spec ++ --- /var/tmp/diff_new_pack.VsvAVH/_old 2018-12-06 12:16:48.085553012 +0100 +++ /var/tmp/diff_new_pack.VsvAVH/_new 2018-12-06 12:16:48.085553012 +0100 @@ -19,14 +19,13 @@ %global pkg_name aeson %bcond_with tests Name: ghc-%{pkg_name} -Version:1.4.1.0 +Version:1.4.2.0 Release:0 Summary:Fast JSON parsing and encoding License:BSD-3-Clause Group: Development/Libraries/Haskell 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-base-compat-devel @@ -83,7 +82,6 @@ %prep %setup -q -n %{pkg_name}-%{version} -cp -p %{SOURCE1} %{pkg_name}.cabal %build %ghc_lib_build ++ aeson-1.4.1.0.tar.gz -> aeson-1.4.2.0.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/aeson-1.4.1.0/Data/Aeson/Parser/Internal.hs new/aeson-1.4.2.0/Data/Aeson/Parser/Internal.hs --- old/aeson-1.4.1.0/Data/Aeson/Parser/Internal.hs 2018-09-24 03:51:45.0 +0200 +++ new/aeson-1.4.2.0/Data/Aeson/Parser/Internal.hs 1970-01-01 01:00:00.0 +0100 @@ -328,12 +328,11 @@ decimal0 :: Parser Integer decimal0 = do - let step a w = a * 10 + fromIntegral (w - zero) - zero = 48 + let zero = 48 digits <- A.takeWhile1 isDigit_w8 if B.length digits > 1 && B.unsafeHead digits == zero then fail "leading zero" -else return (B.foldl' step 0 digits) +else return (bsToInteger digits) -- | Parse a JSON number. scientific :: Parser Scientific @@ -366,3 +365,53 @@ fmap (Sci.scientific signedCoeff . (e +)) (signed decimal)) <|> return (Sci.scientific signedCoeffe) {-# INLINE scientific #-} + +-- Copy-pasted and adapted from base + +bsToInteger :: B.ByteString -> Integer +bsToInteger bs +| l > 40= valInteger 10 l [ fromIntegral (w - 48) | w <- B.unpack bs ] +| otherwise = bsToIntegerSimple bs + where +l = B.length bs + +bsToIntegerSimple :: B.ByteString -> Integer +bsToIntegerSimple = B.foldl' step 0 where + step a b = a * 10 + fromIntegral (b - 48) -- 48 = '0' + +-- A sub-quadratic algorithm for Integer. Pairs of adjacent radix b +-- digits are combined into a single radix b^2 digit. This process is +-- repeated until we are left with a single digit. This algorithm +-- performs well only on large inputs, so we use the simple algorithm +-- for smaller inputs. +valInteger :: Integer -> Int -> [Integer] -> Integer +valInteger = go + where +go :: Integer -> Int -> [Integer] -> Integer +go _ _ [] = 0 +go _ _ [d] = d +go b l ds +| l > 40 = b' `seq` go b' l' (combine b ds') +| otherwise = valSimple b ds + where +-- ensure that we have an even number of digits +-- before we call combine: +ds' = if even l then ds else 0 : ds +b' = b * b +l' = (l + 1) `quot` 2 + +combine b (d1 : d2 : ds) = d `seq` (d : combine b ds) + where +d = d1 * b + d2 +combine _ [] = [] +combine _ [_] = errorWithoutStackTrace "this should not happen" + +-- The following algorithm is only linear for types whose Num operations +-- are in constant time. +valSimple :: Integer -> [Integer] -> Integer +valSimple base = go 0 + where +go r [] = r +go r (d : ds) = r' `seq` go r' ds + where +r'
commit ghc-aeson for openSUSE:Factory
Hello community, here is the log from the commit of package ghc-aeson for openSUSE:Factory checked in at 2018-10-25 08:14:30 Comparing /work/SRC/openSUSE:Factory/ghc-aeson (Old) and /work/SRC/openSUSE:Factory/.ghc-aeson.new (New) Package is "ghc-aeson" Thu Oct 25 08:14:30 2018 rev:19 rq:642845 version:1.4.1.0 Changes: --- /work/SRC/openSUSE:Factory/ghc-aeson/ghc-aeson.changes 2018-07-24 17:12:37.642544969 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-aeson.new/ghc-aeson.changes 2018-10-25 08:14:32.820117080 +0200 @@ -1,0 +2,14 @@ +Thu Oct 4 09:42:52 UTC 2018 - psim...@suse.com + +- Update aeson to version 1.4.1.0. + 1.4.1.0 + + * Optimizations of generics, thanks to Rémy Oudompheng, here are some numbers for GHC 8.4: +* Compilation time: G/BigProduct.hs is 25% faster, G/BigRecord.hs is 2x faster. +* Runtime performance: BigRecord/toJSON/generic and BigProduct/encode/generic are more than 2x faster. + * Added To/FromJSON instances for `Void` and Generics's `V1`, thanks to Will Yager + * Added To/FromJSON instances for `primitive`'s `Array`, `SmallArray`, `PrimArray` and `UnliftedArray`, thanks to Andrew Thad. + * Fixes handling of `UTCTime` wrt. leap seconds , thanks to Adam Schønemann + * Warning and documentation fixes thanks to tom-bop, Gabor Greif, Ian Jeffries, and Mateusz Curyło. + +--- Old: aeson-1.4.0.0.tar.gz New: aeson-1.4.1.0.tar.gz aeson.cabal Other differences: -- ++ ghc-aeson.spec ++ --- /var/tmp/diff_new_pack.UEYYwk/_old 2018-10-25 08:14:33.560116763 +0200 +++ /var/tmp/diff_new_pack.UEYYwk/_new 2018-10-25 08:14:33.564116761 +0200 @@ -12,20 +12,21 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # %global pkg_name aeson %bcond_with tests Name: ghc-%{pkg_name} -Version:1.4.0.0 +Version:1.4.1.0 Release:0 Summary:Fast JSON parsing and encoding License:BSD-3-Clause Group: Development/Libraries/Haskell 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-base-compat-devel @@ -34,6 +35,7 @@ BuildRequires: ghc-deepseq-devel BuildRequires: ghc-dlist-devel BuildRequires: ghc-hashable-devel +BuildRequires: ghc-primitive-devel BuildRequires: ghc-rpm-macros BuildRequires: ghc-scientific-devel BuildRequires: ghc-tagged-devel @@ -81,6 +83,7 @@ %prep %setup -q -n %{pkg_name}-%{version} +cp -p %{SOURCE1} %{pkg_name}.cabal %build %ghc_lib_build ++ aeson-1.4.0.0.tar.gz -> aeson-1.4.1.0.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/aeson-1.4.0.0/Data/Aeson/Encode.hs new/aeson-1.4.1.0/Data/Aeson/Encode.hs --- old/aeson-1.4.0.0/Data/Aeson/Encode.hs 2017-10-26 16:26:29.0 +0200 +++ new/aeson-1.4.1.0/Data/Aeson/Encode.hs 2018-09-24 03:51:45.0 +0200 @@ -1,3 +1,4 @@ +{-# LANGUAGE NoImplicitPrelude #-} -- | -- Module: Data.Aeson.Encode -- Copyright: (c) 2012-2016 Bryan O'Sullivan @@ -8,13 +9,13 @@ -- Portability: portable -- -- This module is left to supply limited backwards-compatibility. + module Data.Aeson.Encode {-# DEPRECATED "Use Data.Aeson or Data.Aeson.Text instead" #-} ( encode , encodeToTextBuilder ) where -import Prelude () import Data.ByteString.Lazy (ByteString) import Data.Text.Lazy.Builder (Builder) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/aeson-1.4.0.0/Data/Aeson/Encoding/Builder.hs new/aeson-1.4.1.0/Data/Aeson/Encoding/Builder.hs --- old/aeson-1.4.0.0/Data/Aeson/Encoding/Builder.hs2018-06-09 11:39:03.0 +0200 +++ new/aeson-1.4.1.0/Data/Aeson/Encoding/Builder.hs2018-09-24 03:51:45.0 +0200 @@ -1,5 +1,6 @@ {-# LANGUAGE BangPatterns #-} - +{-# LANGUAGE NoImplicitPrelude #-} +{-# LANGUAGE TupleSections #-} -- | -- Module: Data.Aeson.Encoding.Builder -- Copyright: (c) 2011 MailRank, Inc. @@ -35,7 +36,6 @@ , ascii5 ) where -import Prelude () import Prelude.Compat import Data.Aeson.Internal.Time @@ -201,7 +201,7 @@ !(T mh ml) = twoDigits m !(T sh sl) = twoDigits (fromIntegral re
commit ghc-aeson for openSUSE:Factory
Hello community, here is the log from the commit of package ghc-aeson for openSUSE:Factory checked in at 2018-07-24 17:12:35 Comparing /work/SRC/openSUSE:Factory/ghc-aeson (Old) and /work/SRC/openSUSE:Factory/.ghc-aeson.new (New) Package is "ghc-aeson" Tue Jul 24 17:12:35 2018 rev:18 rq:623707 version:1.4.0.0 Changes: --- /work/SRC/openSUSE:Factory/ghc-aeson/ghc-aeson.changes 2018-05-30 12:23:04.678519275 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-aeson.new/ghc-aeson.changes 2018-07-24 17:12:37.642544969 +0200 @@ -1,0 +2,52 @@ +Wed Jul 18 14:26:12 UTC 2018 - psim...@suse.com + +- Cosmetic: replace tabs with blanks, strip trailing white space, + and update copyright headers with spec-cleaner. + +--- +Tue Jul 17 19:30:59 UTC 2018 - psim...@suse.com + +- Update aeson to version 1.4.0.0. + ### 1.4.0.0 + + This release introduces bounds on the size of `Scientific` numbers when they are converted to other arbitrary precision types that do not represent them efficiently in memory. + + This means that trying to decode a number such as `1e10` into an `Integer` will now fail instead of using a lot of memory. If you need to represent large numbers you can add a newtype (preferably over `Scientific`) and providing a parser using `withScientific`. + + The following instances are affected by this: + * `FromJSON Natural` + * `FromJSONKey Natural` + * `FromJSON Integer` + * `FromJSONKey Integer` + * `FromJSON NominalDiffTime` + + For the same reasons the following instances & functions have been removed: + * Remove `FromJSON Data.Attoparsec.Number` instance. Note that `Data.Attoparsec.Number` is deprecated. + * Remove deprecated `withNumber`, use `withScientific` instead. + + Finally, encoding integral values with large exponents now uses scientific notation, this saves space for large numbers. + + ### 1.3.1.1 + + * Catch 0 denominators when parsing Ratio + + ### 1.3.1.0 + + * Fix bug in generically derived `FromJSON` instances that are using `unwrapUnaryRecords`, thanks to Xia Li-yao + * Allow base-compat 0.10.*, thanks to Oleg Grenrus + + ## 1.3.0.0 + + Breaking changes: + * `GKeyValue` has been renamed to `KeyValuePair`, thanks to Xia Li-yao + * Removed unused `FromJSON` constraint in `withEmbeddedJson`, thanks to Tristan Seligmann + + Other improvements: + * Optimizations of TH toEncoding, thanks to Xia Li-yao + * Optimizations of hex decoding when using the default/pure unescape implementation, thanks to Xia Li-yao + * Improved error message on `Day` parse failures, thanks to Gershom Bazerman + * Add `encodeFile` as well as `decodeFile*` variants, thanks to Markus Hauck + * Documentation fixes, thanks to Lennart Spitzner + * CPP cleanup, thanks to Ryan Scott + +--- @@ -186 +237,0 @@ - Old: aeson-1.2.4.0.tar.gz New: aeson-1.4.0.0.tar.gz Other differences: -- ++ ghc-aeson.spec ++ --- /var/tmp/diff_new_pack.m4J4Qz/_old 2018-07-24 17:12:38.142545618 +0200 +++ /var/tmp/diff_new_pack.m4J4Qz/_new 2018-07-24 17:12:38.146545624 +0200 @@ -19,7 +19,7 @@ %global pkg_name aeson %bcond_with tests Name: ghc-%{pkg_name} -Version:1.2.4.0 +Version:1.4.0.0 Release:0 Summary:Fast JSON parsing and encoding License:BSD-3-Clause @@ -46,7 +46,6 @@ BuildRequires: ghc-uuid-types-devel BuildRequires: ghc-vector-devel %if %{with tests} -BuildRequires: ghc-HUnit-devel BuildRequires: ghc-QuickCheck-devel BuildRequires: ghc-base-orphans-devel BuildRequires: ghc-base16-bytestring-devel @@ -56,9 +55,9 @@ BuildRequires: ghc-hashable-time-devel BuildRequires: ghc-integer-logarithms-devel BuildRequires: ghc-quickcheck-instances-devel -BuildRequires: ghc-test-framework-devel -BuildRequires: ghc-test-framework-hunit-devel -BuildRequires: ghc-test-framework-quickcheck2-devel +BuildRequires: ghc-tasty-devel +BuildRequires: ghc-tasty-hunit-devel +BuildRequires: ghc-tasty-quickcheck-devel %endif %description @@ -67,19 +66,6 @@ To get started, see the documentation for the 'Data.Aeson' module below. -Parsing performance on a late 2013 MacBook Pro (2.6GHz Core i7), running 64-bit -GHC 7.10.1, for mostly-English tweets from Twitter's JSON search API: - -* 6.4 KB payloads, English: 7570 msg/sec (47.6 MB/sec) - -* 14.6 KB payloads, Japanese: 3261 msg/sec (46.6 MB/sec) - -Encoding performance on the same machine and data: - -* 6.4 KB payloads, English: 22738 msg/sec (142.9 MB/sec) - -* 14.6 KB payloads, Japanese: 15911 msg/sec (227.4 MB/sec) - (A note on naming: in Greek mythology, Aeson was the father of Jason.).
commit ghc-aeson for openSUSE:Factory
Hello community, here is the log from the commit of package ghc-aeson for openSUSE:Factory checked in at 2018-05-30 11:58:37 Comparing /work/SRC/openSUSE:Factory/ghc-aeson (Old) and /work/SRC/openSUSE:Factory/.ghc-aeson.new (New) Package is "ghc-aeson" Wed May 30 11:58:37 2018 rev:17 rq:607734 version:1.2.4.0 Changes: --- /work/SRC/openSUSE:Factory/ghc-aeson/ghc-aeson.changes 2017-09-15 21:15:24.617106962 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-aeson.new/ghc-aeson.changes 2018-05-30 12:23:04.678519275 +0200 @@ -1,0 +2,27 @@ +Mon May 14 17:02:11 UTC 2018 - psim...@suse.com + +- Update aeson to version 1.2.4.0. + * Add `Ord` instance for `JSONPathElement`, thanks to Simon Hengel. + * Added `withEmbeddedJSON` to help parse JSON embedded inside a JSON string, thanks to Jesse Kempf. + * Memory usage improvements to the default (pure) parser, thanks to Jonathan Paugh. Also thanks to Neil Mitchell & Oleg Grenrus for contributing a benchmark. + * `omitNothingFields` now works for the `Option` newtype, thanks to Xia Li-yao. + * Some documentation fixes, thanks to Jonathan Paug & Philippe Crama. + * Add `FromJSON` and `ToJSON` instances for +* `DiffTime`, thanks to Víctor López Juan. +* `CTime`, thanks to Daniel Díaz. + * Fix handling of fractions when parsing Natural, thanks to Yuriy Syrovetskiy. + * Change text in error messages for Integral types to make them follow the common pattern, thanks to Yuriy Syrovetskiy. + * Add missing `INCOHERENT` pragma for `RecordToPair`, thanks to Xia Li-yao. + * Everything related to `Options` is now exported from `Data.Aeson`, thanks to Xia Li-yao. + * Optimizations to not escape text in clear cases, thanks to Oleg Grenrus. + * Some documentation fixes, thanks to Phil de Joux & Xia Li-yao. + * Add `parserThrowError` and `parserCatchError` combinators, thanks to Oleg Grenrus. + * Add `Generic` instance for `Value`, thanks to Xia Li-yao. + * Fix a mistake in the 1.2.0.0 changelog, the `cffi` flag is disabled by default! Thanks to dbaynard. + * `tagSingleConstructors`, an option to encode single-constructor types as tagged sums was added to `Options`. It is disabled by default for backward compatibility. + * The `cffi` flag is now turned off (`False`) by default, this means C FFI code is no longer used by default. You can flip the flag to get C implementation. + * The `Options` constructor is no longer exposed to prevent new options from being breaking changes, use `defaultOptions` instead. + * The contents of `GToJSON` and `GToEncoding` are no longer exposed. + * Some INLINE pragmas were removed to avoid GHC running out of simplifier ticks. + +--- Old: aeson-1.1.2.0.tar.gz aeson.cabal New: aeson-1.2.4.0.tar.gz Other differences: -- ++ ghc-aeson.spec ++ --- /var/tmp/diff_new_pack.KtmYER/_old 2018-05-30 12:23:05.414497288 +0200 +++ /var/tmp/diff_new_pack.KtmYER/_new 2018-05-30 12:23:05.418497169 +0200 @@ -1,7 +1,7 @@ # # spec file for package ghc-aeson # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 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:1.1.2.0 +Version:1.2.4.0 Release:0 Summary:Fast JSON parsing and encoding License:BSD-3-Clause Group: Development/Libraries/Haskell 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-base-compat-devel @@ -40,6 +39,7 @@ BuildRequires: ghc-tagged-devel BuildRequires: ghc-template-haskell-devel BuildRequires: ghc-text-devel +BuildRequires: ghc-th-abstraction-devel BuildRequires: ghc-time-devel BuildRequires: ghc-time-locale-compat-devel BuildRequires: ghc-unordered-containers-devel @@ -95,7 +95,6 @@ %prep %setup -q -n %{pkg_name}-%{version} -cp -p %{SOURCE1} %{pkg_name}.cabal %build %ghc_lib_build @@ -113,7 +112,7 @@ %ghc_pkg_recache %files -f %{name}.files -%doc LICENSE +%license LICENSE %files devel -f %{name}-devel.files %doc README.markdown changelog.md examples ++ aeson-1.1.2.0.tar.gz -> aeson-1.2.4.0.tar.gz ++ 6051 lines of diff (skipped)
commit ghc-aeson for openSUSE:Factory
Hello community, here is the log from the commit of package ghc-aeson for openSUSE:Factory checked in at 2017-09-15 21:15:23 Comparing /work/SRC/openSUSE:Factory/ghc-aeson (Old) and /work/SRC/openSUSE:Factory/.ghc-aeson.new (New) Package is "ghc-aeson" Fri Sep 15 21:15:23 2017 rev:16 rq:524018 version:1.1.2.0 Changes: --- /work/SRC/openSUSE:Factory/ghc-aeson/ghc-aeson.changes 2017-08-31 20:46:14.337560475 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-aeson.new/ghc-aeson.changes 2017-09-15 21:15:24.617106962 +0200 @@ -1,0 +2,5 @@ +Thu Aug 3 15:38:38 UTC 2017 - psim...@suse.com + +- Updated with latest spec-cleaner version 0.9.8-8-geadfbbf. + +--- Other differences: -- ++ ghc-aeson.spec ++ --- /var/tmp/diff_new_pack.D1HWkI/_old 2017-09-15 21:15:25.684956924 +0200 +++ /var/tmp/diff_new_pack.D1HWkI/_new 2017-09-15 21:15:25.688956362 +0200 @@ -23,8 +23,8 @@ Release:0 Summary:Fast JSON parsing and encoding License:BSD-3-Clause -Group: Development/Languages/Other -Url:https://hackage.haskell.org/package/%{pkg_name} +Group: Development/Libraries/Haskell +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 @@ -45,7 +45,6 @@ BuildRequires: ghc-unordered-containers-devel BuildRequires: ghc-uuid-types-devel BuildRequires: ghc-vector-devel -BuildRoot: %{_tmppath}/%{name}-%{version}-build %if %{with tests} BuildRequires: ghc-HUnit-devel BuildRequires: ghc-QuickCheck-devel @@ -85,7 +84,7 @@ %package devel Summary:Haskell %{pkg_name} library development files -Group: Development/Libraries/Other +Group: Development/Libraries/Haskell Requires: %{name} = %{version}-%{release} Requires: ghc-compiler = %{ghc_version} Requires(post): ghc-compiler = %{ghc_version} @@ -114,11 +113,9 @@ %ghc_pkg_recache %files -f %{name}.files -%defattr(-,root,root,-) %doc LICENSE %files devel -f %{name}-devel.files -%defattr(-,root,root,-) %doc README.markdown changelog.md examples %changelog
commit ghc-aeson for openSUSE:Factory
Hello community, here is the log from the commit of package ghc-aeson for openSUSE:Factory checked in at 2017-08-31 20:46:12 Comparing /work/SRC/openSUSE:Factory/ghc-aeson (Old) and /work/SRC/openSUSE:Factory/.ghc-aeson.new (New) Package is "ghc-aeson" Thu Aug 31 20:46:12 2017 rev:15 rq:513199 version:1.1.2.0 Changes: --- /work/SRC/openSUSE:Factory/ghc-aeson/ghc-aeson.changes 2017-04-14 13:41:19.984761920 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-aeson.new/ghc-aeson.changes 2017-08-31 20:46:14.337560475 +0200 @@ -1,0 +2,5 @@ +Thu Jul 27 14:07:48 UTC 2017 - psim...@suse.com + +- Update to version 1.1.2.0 revision 1. + +--- Old: aeson-1.0.2.1.tar.gz New: aeson-1.1.2.0.tar.gz Other differences: -- ++ ghc-aeson.spec ++ --- /var/tmp/diff_new_pack.GmhusH/_old 2017-08-31 20:46:15.685371292 +0200 +++ /var/tmp/diff_new_pack.GmhusH/_new 2017-08-31 20:46:15.689370731 +0200 @@ -19,7 +19,7 @@ %global pkg_name aeson %bcond_with tests Name: ghc-%{pkg_name} -Version:1.0.2.1 +Version:1.1.2.0 Release:0 Summary:Fast JSON parsing and encoding License:BSD-3-Clause @@ -43,6 +43,7 @@ BuildRequires: ghc-time-devel BuildRequires: ghc-time-locale-compat-devel BuildRequires: ghc-unordered-containers-devel +BuildRequires: ghc-uuid-types-devel BuildRequires: ghc-vector-devel BuildRoot: %{_tmppath}/%{name}-%{version}-build %if %{with tests} @@ -50,8 +51,11 @@ BuildRequires: ghc-QuickCheck-devel BuildRequires: ghc-base-orphans-devel BuildRequires: ghc-base16-bytestring-devel +BuildRequires: ghc-directory-devel +BuildRequires: ghc-filepath-devel BuildRequires: ghc-generic-deriving-devel BuildRequires: ghc-hashable-time-devel +BuildRequires: ghc-integer-logarithms-devel BuildRequires: ghc-quickcheck-instances-devel BuildRequires: ghc-test-framework-devel BuildRequires: ghc-test-framework-hunit-devel ++ aeson-1.0.2.1.tar.gz -> aeson-1.1.2.0.tar.gz ++ 5147 lines of diff (skipped) ++ aeson.cabal ++ --- /var/tmp/diff_new_pack.GmhusH/_old 2017-08-31 20:46:16.113311225 +0200 +++ /var/tmp/diff_new_pack.GmhusH/_new 2017-08-31 20:46:16.113311225 +0200 @@ -1,227 +1,252 @@ -name:aeson -version: 1.0.2.1 -x-revision: 1 -license: BSD3 -license-file:LICENSE -category:Text, Web, JSON -copyright: (c) 2011-2016 Bryan O'Sullivan - (c) 2011 MailRank, Inc. -author: Bryan O'Sullivan -maintainer: Adam Bergmark -stability: experimental -tested-with: GHC == 7.4.2, GHC == 7.6.3, GHC == 7.8.4, GHC == 7.10.3, GHC == 8.0.1 -synopsis:Fast JSON parsing and encoding -cabal-version: >= 1.10 -homepage:https://github.com/bos/aeson -bug-reports: https://github.com/bos/aeson/issues -build-type: Simple -description: -A JSON parsing and encoding library optimized for ease of use -and high performance. -. -To get started, see the documentation for the @Data.Aeson@ module -below. -. -Parsing performance on a late 2013 MacBook Pro (2.6GHz Core i7), -running 64-bit GHC 7.10.1, for mostly-English tweets from Twitter's -JSON search API: -. -* 6.4 KB payloads, English: 7570 msg\/sec (47.6 MB\/sec) -. -* 14.6 KB payloads, Japanese: 3261 msg\/sec (46.6 MB\/sec) -. -Encoding performance on the same machine and data: -. -* 6.4 KB payloads, English: 22738 msg\/sec (142.9 MB\/sec) -. -* 14.6 KB payloads, Japanese: 15911 msg\/sec (227.4 MB\/sec) -. -(A note on naming: in Greek mythology, Aeson was the father of Jason.) - -extra-source-files: -README.markdown -benchmarks/*.cabal -benchmarks/*.hs -benchmarks/*.py -benchmarks/Compare/*.hs -benchmarks/Makefile -benchmarks/Typed/*.hs -benchmarks/json-data/*.json -include/overlapping-compat.h -include/incoherent-compat.h -changelog.md -examples/*.cabal -examples/*.hs -examples/Twitter/*.hs -include/*.h -cbits/*.c - -flag developer - description: operate in developer mode - default: False - manual: True - -flag fast - description: compile without optimizations - default: False - manual: True - -flag bytestring-builder - description: Depend on the bytestring-builder package for backwards compatibility. - default: False - manual: False - -library - default-language: Haskell2010 - - exposed-modules: -Data.Aeson -Data.Aeson.Encoding -Data.Aeson.Parser -Data.Aeson.Text -Data.Aeson.Types -Data.Aeson.TH - -Data.Aeson.Encoding.Internal -Data.Aeson.Internal -Data.Aeson.Internal.Time - - -
commit ghc-aeson for openSUSE:Factory
Hello community, here is the log from the commit of package ghc-aeson for openSUSE:Factory checked in at 2017-04-14 13:41:18 Comparing /work/SRC/openSUSE:Factory/ghc-aeson (Old) and /work/SRC/openSUSE:Factory/.ghc-aeson.new (New) Package is "ghc-aeson" Fri Apr 14 13:41:18 2017 rev:14 rq:487383 version:1.0.2.1 Changes: --- /work/SRC/openSUSE:Factory/ghc-aeson/ghc-aeson.changes 2017-03-03 17:48:07.850644579 +0100 +++ /work/SRC/openSUSE:Factory/.ghc-aeson.new/ghc-aeson.changes 2017-04-14 13:41:19.984761920 +0200 @@ -1,0 +2,5 @@ +Tue Apr 4 11:04:08 UTC 2017 - psim...@suse.com + +- Update to version 1.0.2.1 revision 1 with cabal2obs. + +--- New: aeson.cabal Other differences: -- ++ ghc-aeson.spec ++ --- /var/tmp/diff_new_pack.kOVpBa/_old 2017-04-14 13:41:20.760652261 +0200 +++ /var/tmp/diff_new_pack.kOVpBa/_new 2017-04-14 13:41:20.760652261 +0200 @@ -26,6 +26,7 @@ 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-base-compat-devel @@ -91,6 +92,7 @@ %prep %setup -q -n %{pkg_name}-%{version} +cp -p %{SOURCE1} %{pkg_name}.cabal %build %ghc_lib_build ++ aeson.cabal ++ name:aeson version: 1.0.2.1 x-revision: 1 license: BSD3 license-file:LICENSE category:Text, Web, JSON copyright: (c) 2011-2016 Bryan O'Sullivan (c) 2011 MailRank, Inc. author: Bryan O'Sullivan maintainer: Adam Bergmark stability: experimental tested-with: GHC == 7.4.2, GHC == 7.6.3, GHC == 7.8.4, GHC == 7.10.3, GHC == 8.0.1 synopsis:Fast JSON parsing and encoding cabal-version: >= 1.10 homepage:https://github.com/bos/aeson bug-reports: https://github.com/bos/aeson/issues build-type: Simple description: A JSON parsing and encoding library optimized for ease of use and high performance. . To get started, see the documentation for the @Data.Aeson@ module below. . Parsing performance on a late 2013 MacBook Pro (2.6GHz Core i7), running 64-bit GHC 7.10.1, for mostly-English tweets from Twitter's JSON search API: . * 6.4 KB payloads, English: 7570 msg\/sec (47.6 MB\/sec) . * 14.6 KB payloads, Japanese: 3261 msg\/sec (46.6 MB\/sec) . Encoding performance on the same machine and data: . * 6.4 KB payloads, English: 22738 msg\/sec (142.9 MB\/sec) . * 14.6 KB payloads, Japanese: 15911 msg\/sec (227.4 MB\/sec) . (A note on naming: in Greek mythology, Aeson was the father of Jason.) extra-source-files: README.markdown benchmarks/*.cabal benchmarks/*.hs benchmarks/*.py benchmarks/Compare/*.hs benchmarks/Makefile benchmarks/Typed/*.hs benchmarks/json-data/*.json include/overlapping-compat.h include/incoherent-compat.h changelog.md examples/*.cabal examples/*.hs examples/Twitter/*.hs include/*.h cbits/*.c flag developer description: operate in developer mode default: False manual: True flag fast description: compile without optimizations default: False manual: True flag bytestring-builder description: Depend on the bytestring-builder package for backwards compatibility. default: False manual: False library default-language: Haskell2010 exposed-modules: Data.Aeson Data.Aeson.Encoding Data.Aeson.Parser Data.Aeson.Text Data.Aeson.Types Data.Aeson.TH Data.Aeson.Encoding.Internal Data.Aeson.Internal Data.Aeson.Internal.Time -- Deprecated modules exposed-modules: Data.Aeson.Encode other-modules: Data.Aeson.Encoding.Builder Data.Aeson.Internal.Functions Data.Aeson.Parser.Internal Data.Aeson.Parser.Unescape Data.Aeson.Parser.Time Data.Aeson.Types.FromJSON Data.Aeson.Types.Generic Data.Aeson.Types.ToJSON Data.Aeson.Types.Class Data.Aeson.Types.Internal build-depends: attoparsec >= 0.13.0.1 && < 0.14, base >= 4.5 && < 5, base-compat >= 0.9.1 && < 0.10, containers >= 0.4.2 && < 0.6, deepseq >= 1.3 && < 1.5, dlist >= 0.6 && < 0.9, ghc-prim >= 0.2, hashable >= 1.1.2.0 && < 1.3, scientific >= 0.3.4.7 && < 0.4, tagged >=0.8.3 && <0.9, template-haskell >= 2.7 && < 2.12, text >= 1.1.1.0 && < 1.3, time >= 1.1.1.4 && < 1.7, time-l
commit ghc-aeson for openSUSE:Factory
Hello community, here is the log from the commit of package ghc-aeson for openSUSE:Factory checked in at 2017-03-03 17:47:47 Comparing /work/SRC/openSUSE:Factory/ghc-aeson (Old) and /work/SRC/openSUSE:Factory/.ghc-aeson.new (New) Package is "ghc-aeson" Fri Mar 3 17:47:47 2017 rev:13 rq:461532 version:1.0.2.1 Changes: --- /work/SRC/openSUSE:Factory/ghc-aeson/ghc-aeson.changes 2017-02-11 01:40:38.681569140 +0100 +++ /work/SRC/openSUSE:Factory/.ghc-aeson.new/ghc-aeson.changes 2017-03-03 17:48:07.850644579 +0100 @@ -1,0 +2,5 @@ +Sun Feb 12 14:08:22 UTC 2017 - psim...@suse.com + +- Update to version 1.0.2.1 with cabal2obs. + +--- Old: aeson-0.11.3.0.tar.gz New: aeson-1.0.2.1.tar.gz Other differences: -- ++ ghc-aeson.spec ++ --- /var/tmp/diff_new_pack.AeeKHu/_old 2017-03-03 17:48:08.402566632 +0100 +++ /var/tmp/diff_new_pack.AeeKHu/_new 2017-03-03 17:48:08.406566068 +0100 @@ -19,7 +19,7 @@ %global pkg_name aeson %bcond_with tests Name: ghc-%{pkg_name} -Version:0.11.3.0 +Version:1.0.2.1 Release:0 Summary:Fast JSON parsing and encoding License:BSD-3-Clause @@ -28,21 +28,19 @@ Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz BuildRequires: ghc-Cabal-devel BuildRequires: ghc-attoparsec-devel +BuildRequires: ghc-base-compat-devel BuildRequires: ghc-bytestring-devel BuildRequires: ghc-containers-devel BuildRequires: ghc-deepseq-devel BuildRequires: ghc-dlist-devel -BuildRequires: ghc-fail-devel BuildRequires: ghc-hashable-devel -BuildRequires: ghc-mtl-devel BuildRequires: ghc-rpm-macros BuildRequires: ghc-scientific-devel -BuildRequires: ghc-syb-devel BuildRequires: ghc-tagged-devel BuildRequires: ghc-template-haskell-devel BuildRequires: ghc-text-devel BuildRequires: ghc-time-devel -BuildRequires: ghc-transformers-devel +BuildRequires: ghc-time-locale-compat-devel BuildRequires: ghc-unordered-containers-devel BuildRequires: ghc-vector-devel BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -50,6 +48,9 @@ BuildRequires: ghc-HUnit-devel BuildRequires: ghc-QuickCheck-devel BuildRequires: ghc-base-orphans-devel +BuildRequires: ghc-base16-bytestring-devel +BuildRequires: ghc-generic-deriving-devel +BuildRequires: ghc-hashable-time-devel BuildRequires: ghc-quickcheck-instances-devel BuildRequires: ghc-test-framework-devel BuildRequires: ghc-test-framework-hunit-devel ++ aeson-0.11.3.0.tar.gz -> aeson-1.0.2.1.tar.gz ++ 16027 lines of diff (skipped)
commit ghc-aeson for openSUSE:Factory
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.0 +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 - psim...@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.0 +0200 +++ new/aeson-0.11.3.0/Data/Aeson/Encode/Builder.hs 2017-01-24 18:07:40.0 +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.0 +0200 +++ new/aeson-0.11.3.0/aeson.cabal 2017-01-24 18:13:56.0 +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.0 +0200 +++ new/aeson-0.11.3.0/changelog.md 2017-01-24 18:13:50.0 +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.
commit ghc-aeson for openSUSE:Factory
Hello community, here is the log from the commit of package ghc-aeson for openSUSE:Factory checked in at 2016-10-22 13:21:55 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-09-05 21:21:16.0 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-aeson.new/ghc-aeson.changes 2016-10-22 13:21:56.0 +0200 @@ -1,0 +2,5 @@ +Mon Sep 19 10:39:23 UTC 2016 - psim...@suse.com + +- Update to version 0.11.2.1 revision 1 with cabal2obs. + +--- New: aeson.cabal Other differences: -- ++ ghc-aeson.spec ++ --- /var/tmp/diff_new_pack.wbSBsk/_old 2016-10-22 13:21:57.0 +0200 +++ /var/tmp/diff_new_pack.wbSBsk/_new 2016-10-22 13:21:57.0 +0200 @@ -26,6 +26,7 @@ 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 @@ -37,7 +38,6 @@ BuildRequires: ghc-mtl-devel BuildRequires: ghc-rpm-macros BuildRequires: ghc-scientific-devel -BuildRequires: ghc-semigroups-devel BuildRequires: ghc-syb-devel BuildRequires: ghc-tagged-devel BuildRequires: ghc-template-haskell-devel @@ -91,6 +91,7 @@ %prep %setup -q -n %{pkg_name}-%{version} +cp -p %{SOURCE1} %{pkg_name}.cabal %build %ghc_lib_build @@ -113,6 +114,5 @@ %files devel -f %{name}-devel.files %defattr(-,root,root,-) -%doc README.markdown changelog.md examples %changelog ++ aeson.cabal ++ name:aeson version: 0.11.2.1 x-revision: 1 license: BSD3 license-file:LICENSE category:Text, Web, JSON copyright: (c) 2011-2016 Bryan O'Sullivan (c) 2011 MailRank, Inc. author: Bryan O'Sullivan maintainer: Adam Bergmark stability: experimental tested-with: GHC == 7.4.2, GHC == 7.6.3, GHC == 7.8.4, GHC == 7.10.2 synopsis:Fast JSON parsing and encoding cabal-version: >= 1.10 homepage:https://github.com/bos/aeson bug-reports: https://github.com/bos/aeson/issues build-type: Simple description: A JSON parsing and encoding library optimized for ease of use and high performance. . To get started, see the documentation for the @Data.Aeson@ module below. . Parsing performance on a late 2013 MacBook Pro (2.6GHz Core i7), running 64-bit GHC 7.10.1, for mostly-English tweets from Twitter's JSON search API: . * 6.4 KB payloads, English: 7570 msg\/sec (47.6 MB\/sec) . * 14.6 KB payloads, Japanese: 3261 msg\/sec (46.6 MB\/sec) . Encoding performance on the same machine and data: . * 6.4 KB payloads, English: 22738 msg\/sec (142.9 MB\/sec) . * 14.6 KB payloads, Japanese: 15911 msg\/sec (227.4 MB\/sec) . (A note on naming: in Greek mythology, Aeson was the father of Jason.) extra-source-files: README.markdown benchmarks/*.cabal benchmarks/*.hs benchmarks/*.py benchmarks/Compare/*.hs benchmarks/Makefile benchmarks/Typed/*.hs benchmarks/json-data/*.json include/overlapping-compat.h changelog.md examples/*.cabal examples/*.hs examples/Twitter/*.hs include/*.h flag developer description: operate in developer mode default: False manual: True flag old-locale description: If false then depend on time >= 1.5. . If true then depend on time < 1.5 together with old-locale. default: False library default-language: Haskell2010 exposed-modules: Data.Aeson Data.Aeson.Encode Data.Aeson.Internal Data.Aeson.Internal.Time Data.Aeson.Parser Data.Aeson.Types Data.Aeson.TH other-modules: Data.Aeson.Encode.Builder Data.Aeson.Encode.Functions Data.Aeson.Functions Data.Aeson.Parser.Internal Data.Aeson.Parser.Time Data.Aeson.Types.Class Data.Aeson.Types.Generic Data.Aeson.Types.Instances Data.Aeson.Types.Internal build-depends: attoparsec >= 0.13.0.1, base >= 4.5 && < 5, bytestring >= 0.10.4.0, containers, deepseq, dlist >= 0.2, fail == 4.9.*, ghc-prim >= 0.2, hashable >= 1.1.2.0, mtl, scientific >= 0.3.1 && < 0.4, syb, tagged >=0.8.3 && <0.9, template-haskell >= 2.7, text >= 1.1.1.0, transformers,
commit ghc-aeson for openSUSE:Factory
Hello community, here is the log from the commit of package ghc-aeson for openSUSE:Factory checked in at 2016-09-05 21:21:14 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-07-21 08:00:57.0 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-aeson.new/ghc-aeson.changes 2016-09-05 21:21:16.0 +0200 @@ -1,0 +2,5 @@ +Wed Aug 17 18:30:25 UTC 2016 - psim...@suse.com + +- Update to version 0.11.2.1 revision 0 with cabal2obs. + +--- Old: 1.cabal aeson-0.11.2.0.tar.gz New: aeson-0.11.2.1.tar.gz Other differences: -- ++ ghc-aeson.spec ++ --- /var/tmp/diff_new_pack.3vOtYJ/_old 2016-09-05 21:21:17.0 +0200 +++ /var/tmp/diff_new_pack.3vOtYJ/_new 2016-09-05 21:21:17.0 +0200 @@ -19,16 +19,14 @@ %global pkg_name aeson %bcond_with tests Name: ghc-%{pkg_name} -Version:0.11.2.0 +Version:0.11.2.1 Release:0 Summary:Fast JSON parsing and encoding License:BSD-3-Clause -Group: System/Libraries +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 BuildRequires: ghc-Cabal-devel -# Begin cabal-rpm deps: BuildRequires: ghc-attoparsec-devel BuildRequires: ghc-bytestring-devel BuildRequires: ghc-containers-devel @@ -58,7 +56,6 @@ BuildRequires: ghc-test-framework-hunit-devel BuildRequires: ghc-test-framework-quickcheck2-devel %endif -# End cabal-rpm deps %description A JSON parsing and encoding library optimized for ease of use and high @@ -94,22 +91,15 @@ %prep %setup -q -n %{pkg_name}-%{version} -cp -p %{SOURCE1} %{pkg_name}.cabal - %build %ghc_lib_build - %install %ghc_lib_install - %check -%if %{with tests} -%{cabal} test -%endif - +%cabal_test %post devel %ghc_pkg_recache ++ aeson-0.11.2.0.tar.gz -> aeson-0.11.2.1.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/aeson-0.11.2.0/aeson.cabal new/aeson-0.11.2.1/aeson.cabal --- old/aeson-0.11.2.0/aeson.cabal 2016-04-29 20:01:01.0 +0200 +++ new/aeson-0.11.2.1/aeson.cabal 2016-08-07 14:20:26.0 +0200 @@ -1,5 +1,5 @@ name:aeson -version: 0.11.2.0 +version: 0.11.2.1 license: BSD3 license-file:LICENSE category:Text, Web, JSON @@ -113,7 +113,7 @@ if !impl(ghc >= 7.10) -- `Numeric.Natural` is available in base only since GHC 7.10 / base 4.8 -build-depends: nats >=1 && <1.1 +build-depends: nats >=1 && <1.2 if flag(old-locale) build-depends: time < 1.5, old-locale @@ -149,7 +149,7 @@ build-depends: HUnit, -QuickCheck >= 2.7 && <2.8.3, +QuickCheck >= 2.7 && <2.10, aeson, attoparsec, base, @@ -178,7 +178,7 @@ build-depends: time >= 1.5 if !impl(ghc >= 7.10) -build-depends: nats >=1 && <1.1 +build-depends: nats >=1 && <1.2 source-repository head type: git diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/aeson-0.11.2.0/tests/Instances.hs new/aeson-0.11.2.1/tests/Instances.hs --- old/aeson-0.11.2.0/tests/Instances.hs 2016-04-07 17:14:30.0 +0200 +++ new/aeson-0.11.2.1/tests/Instances.hs 2016-08-07 14:20:26.0 +0200 @@ -142,12 +142,17 @@ instance (ApproxEq a) => ApproxEq [a] where a =~ b = length a == length b && all (uncurry (=~)) (zip a b) +#if !MIN_VERSION_QuickCheck(2,9,0) instance Arbitrary Version where arbitrary = makeVersion . fmap getNonNegative <$> resize 4 (listOf1 arbitrary) instance Arbitrary a => Arbitrary (NonEmpty a) where arbitrary = (:|) <$> arbitrary <*> arbitrary +instance Arbitrary a => Arbitrary (Const a b) where +arbitrary = Const <$> arbitrary +#endif + -- Version tags are deprecated, so we avoid using them in the Arbitrary -- instance. However, the recommended constructor 'makeVersion' is not -- exported by "Data.Version" until base-4.8.0.0. For previous versions, @@ -168,6 +173,3 @@ instance Arbitrary b => Arbitrary (Tagged a b) where arbitrary = Tagged <$> arbitrary - -instance Arbitrary a => Arbitrary (Const a b) where -arbitrary = Const <$> arbitrary
commit ghc-aeson for openSUSE:Factory
Hello community, here is the log from the commit of package ghc-aeson for openSUSE:Factory checked in at 2016-07-21 08:00:51 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-05-26 23:54:28.0 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-aeson.new/ghc-aeson.changes 2016-07-21 08:00:57.0 +0200 @@ -1,0 +2,5 @@ +Sun Jul 10 17:33:06 UTC 2016 - psim...@suse.com + +- Update to version 0.11.2.0 revision 1 with cabal2obs. + +--- New: 1.cabal Other differences: -- ++ ghc-aeson.spec ++ --- /var/tmp/diff_new_pack.ec00SE/_old 2016-07-21 08:00:58.0 +0200 +++ /var/tmp/diff_new_pack.ec00SE/_new 2016-07-21 08:00:58.0 +0200 @@ -1,7 +1,7 @@ # # spec file for package ghc-aeson # -# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2016 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 @@ -17,22 +17,17 @@ %global pkg_name aeson - %bcond_with tests - Name: ghc-%{pkg_name} Version:0.11.2.0 Release:0 Summary:Fast JSON parsing and encoding License:BSD-3-Clause Group: System/Libraries - Url:https://hackage.haskell.org/package/%{pkg_name} Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz -BuildRoot: %{_tmppath}/%{name}-%{version}-build - +Source1: https://hackage.haskell.org/package/%{pkg_name}-%{version}/revision/1.cabal BuildRequires: ghc-Cabal-devel -BuildRequires: ghc-rpm-macros # Begin cabal-rpm deps: BuildRequires: ghc-attoparsec-devel BuildRequires: ghc-bytestring-devel @@ -42,6 +37,7 @@ BuildRequires: ghc-fail-devel BuildRequires: ghc-hashable-devel BuildRequires: ghc-mtl-devel +BuildRequires: ghc-rpm-macros BuildRequires: ghc-scientific-devel BuildRequires: ghc-semigroups-devel BuildRequires: ghc-syb-devel @@ -49,11 +45,15 @@ BuildRequires: ghc-template-haskell-devel BuildRequires: ghc-text-devel BuildRequires: ghc-time-devel +BuildRequires: ghc-transformers-devel BuildRequires: ghc-unordered-containers-devel BuildRequires: ghc-vector-devel +BuildRoot: %{_tmppath}/%{name}-%{version}-build %if %{with tests} BuildRequires: ghc-HUnit-devel BuildRequires: ghc-QuickCheck-devel +BuildRequires: ghc-base-orphans-devel +BuildRequires: ghc-quickcheck-instances-devel BuildRequires: ghc-test-framework-devel BuildRequires: ghc-test-framework-hunit-devel BuildRequires: ghc-test-framework-quickcheck2-devel @@ -66,71 +66,51 @@ To get started, see the documentation for the 'Data.Aeson' module below. -Parsing performance on an early 2011 MacBook Pro (2.2GHz Core i7), running -64-bit GHC 7.6.3, for mostly-English tweets from Twitter's JSON search API: - -* 0.8 KB: 34124 msg/sec (27.8 MB/sec) - -* 6.4 KB: 6833 msg/sec (43.0 MB/sec) - -* 11.8 KB: 3410 msg/sec (39.2 MB/sec) - -* 31.2 KB: 1157 msg/sec (35.3 MB/sec) - -* 61.5 KB: 542 msg/sec (32.5 MB/sec) +Parsing performance on a late 2013 MacBook Pro (2.6GHz Core i7), running 64-bit +GHC 7.10.1, for mostly-English tweets from Twitter's JSON search API: -Handling heavily-escaped text is a little more work. Here is parsing -performance with Japanese tweets, where much of the text is entirely -Unicode-escaped. +* 6.4 KB payloads, English: 7570 msg/sec (47.6 MB/sec) -* 14.6 KB: 2101 msg/sec (30.0 MB/sec) - -* 44.1 KB: 667 msg/sec (28.7 MB/sec) - -* 82.9 KB: 360 msg/sec (29.2 MB/sec) +* 14.6 KB payloads, Japanese: 3261 msg/sec (46.6 MB/sec) Encoding performance on the same machine and data: -* English, 0.8 KB: 109697 msg/sec (89.3 MB/sec) - -* English, 6.4 KB: 18517 msg/sec (116.4 MB/sec) - -* Engish, 61.5 KB: 1963 msg/sec (118.0 MB/sec) +* 6.4 KB payloads, English: 22738 msg/sec (142.9 MB/sec) -* Japanese, 14.6 KB: 12140 msg/sec (173.5 MB/sec) - -* Japanese, 44.1 KB: 3980 msg/sec (171.3 MB/sec) +* 14.6 KB payloads, Japanese: 15911 msg/sec (227.4 MB/sec) (A note on naming: in Greek mythology, Aeson was the father of Jason.). - %package devel Summary:Haskell %{pkg_name} library development files Group: Development/Libraries/Other +Requires: %{name} = %{version}-%{release} Requires: ghc-compiler = %{ghc_version} Requires(post): ghc-compiler = %{ghc_version} Requires(postun): ghc-compiler = %{ghc_version} -Requires: %{name} = %{version}-%{release} %description devel Th
commit ghc-aeson for openSUSE:Factory
Hello community, here is the log from the commit of package ghc-aeson for openSUSE:Factory checked in at 2016-05-26 23:54:23 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-01-28 17:24:27.0 +0100 +++ /work/SRC/openSUSE:Factory/.ghc-aeson.new/ghc-aeson.changes 2016-05-26 23:54:28.0 +0200 @@ -1,0 +2,53 @@ +Thu May 26 06:06:35 UTC 2016 - mimi...@gmail.com + +- update to 0.11.2.0 +* Enable PolyKinds to generalize Proxy, Tagged, and Const instances. +* Add unsafeToEncoding in Data.Aeson.Types, use with care! + +--- +Fri Mar 25 07:41:45 UTC 2016 - mimi...@gmail.com + +- update to 0.11.1.4 +* Fix build with base < 4.8 and unordered-containers < 0.2.6. +* Add missing field in docs for defaultOptions. +* Fixes a bug where the hashes of equal values could differ. +* The only changes are added instances. (0.11.1.0) ++ These are new: +ToJSON a => ToJSON (NonEmpty a) +FromJSON a => FromJSON (NonEmpty a) +ToJSON (Proxy a) +FromJSON (Proxy a) +ToJSON b => ToJSON (Tagged a b) +FromJSON b => FromJSON (Tagged a b) +ToJSON a => ToJSON (Const a b) +FromJSON a => FromJSON (Const a b) ++ These are now available for older GHCs: +ToJSON Natural +FromJSON Natural +* This release should be close to backwards compatible with aeson 0.9 (0.11.0.0) ++ Breaking changes: +Revert .:? to behave like it did in 0.9. If you want the 0.10 behavior +use .:! instead. +Revert JSON format of Either to 0.9, Left and Right are now serialized with +an initial uppercase letter. If you want the names in lowercase you can +add a newtype with an instance. +All ToJSON and FromJSON instances except for [a] are no longer OVERLAPPABLE. +Mark your instance as OVERLAPPING if it overlaps any of the other aeson +instances. +All ToJSON and FromJSON instances except for [Char] are no longer +incoherent, this means you may need to replace your incoherent instances +with a newtyped instance. ++ Additions: +Introduce .:! that behaves like .:? did in 0.10. +Allow HH:MM format for ZonedTime and UTCTime. This is one of the formats +allowed by ISO 8601. +Added ToJSON and FromJSON instances for the Version, Ordering, and Natural +types. ++ Bug fixes: +JSONPath identifiers are now escaped if they contain invalid characters. +Fixed JSONPath messages for Seq to include indices. +Fixed JSONPath messages for Either to include left/right. +Fix missing quotes surrounding time encodings. +Fix #293: Type error in TH when using omitNothingFields = True. + +--- Old: aeson-0.9.0.1.tar.gz New: aeson-0.11.2.0.tar.gz Other differences: -- ++ ghc-aeson.spec ++ --- /var/tmp/diff_new_pack.FzYv6j/_old 2016-05-26 23:54:29.0 +0200 +++ /var/tmp/diff_new_pack.FzYv6j/_new 2016-05-26 23:54:29.0 +0200 @@ -21,7 +21,7 @@ %bcond_with tests Name: ghc-%{pkg_name} -Version:0.9.0.1 +Version:0.11.2.0 Release:0 Summary:Fast JSON parsing and encoding License:BSD-3-Clause @@ -39,11 +39,13 @@ BuildRequires: ghc-containers-devel BuildRequires: ghc-deepseq-devel BuildRequires: ghc-dlist-devel +BuildRequires: ghc-fail-devel BuildRequires: ghc-hashable-devel BuildRequires: ghc-mtl-devel -BuildRequires: ghc-old-locale-devel BuildRequires: ghc-scientific-devel +BuildRequires: ghc-semigroups-devel BuildRequires: ghc-syb-devel +BuildRequires: ghc-tagged-devel BuildRequires: ghc-template-haskell-devel BuildRequires: ghc-text-devel BuildRequires: ghc-time-devel ++ aeson-0.9.0.1.tar.gz -> aeson-0.11.2.0.tar.gz ++ 14359 lines of diff (skipped)
commit ghc-aeson for openSUSE:Factory
Hello community, here is the log from the commit of package ghc-aeson for openSUSE:Factory checked in at 2016-01-28 17:23:29 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-01-08 15:22:37.0 +0100 +++ /work/SRC/openSUSE:Factory/.ghc-aeson.new/ghc-aeson.changes 2016-01-28 17:24:27.0 +0100 @@ -2,50 +1,0 @@ -Wed Dec 23 15:40:06 UTC 2015 - mimi...@gmail.com - -- update to 0.10.0.0 -* Performance improvements: - + Direct encoding via the new toEncoding method is over 2x faster than toJSON. - (You must write or code-gen a toEncoding implementation to unlock this speedup. - See below for details.) - + Improved string decoding gives a 12% speed win in parsing string-heavy JSON - payloads (very common). - + Encoding and decoding of time-related types are 10x faster (!!) as a result of - bypassing Data.Time.Format and the arbitrary-precision Integer type. - + When using toEncoding, [Char] can be encoded without a conversion to Text. - This is fast and efficient. - + Parsing into an Object is now 5% faster and more allocation-efficient. -* SUBTLE API CHANGES, READ CAREFULLY: - + With the exception of long-deprecated code, the API changes below should be - upwards compatible from older versions of aeson. If you run into upgrade - problems, please file an issue with details. - + The ToJSON class has a new method, toEncoding, that allows direct encoding - from a Haskell value to a lazy bytestring without construction of an - intermediate Value. - + The performance benefits of direct encoding are significant: more than 2x - faster than before, with less than 1/3 the memory usage. - + To preserve API compatibility across upgrades from older versions of this - library, the default implementation of toEncoding uses toJSON. You will not - see any performance improvement unless you write an implementation of - toEncoding, which can be very simple: - instance ToJSON Coord where - toEncoding = genericToEncoding defaultOptions - (Behind the scenes, the encode function uses toEncoding now, so if you - implement toEncoding for your types, you should see a speedup immediately.) - + If you use Template Haskell or GHC Generics to auto-generate your ToJSON - instances, you'll benefit from fast toEncoding implementations for free! - + When converting from a Value to a target Haskell type, FromJSON instances now - provide much better error messages, including a complete JSON path from the -root of the object to the offending element. This greatly eases debugging. - + It is now possible to use Template Haskell to generate FromJSON and ToJSON - instances for types in data families. - + If you use Template Haskell or generics, and used to use the camelTo function - to rename fields, the new camelTo2 function is smarter. For example, camelTo -will rename CamelAPICase to camelapi_case (ugh!), while camelTo2 will map -it to camel_api_case (yay!). - + New ToJSON and FromJSON instances for the following time-related types: Day, - LocalTime. - + The Result type is now an instance of Foldable and Traversable. - + The Data.Aeson.Generic module has been removed. It was deprecated in late 2013. - + The instance of Monad for the Result type lacked an implementation of fail -(oops). This has been corrected. - Old: aeson-0.10.0.0.tar.gz New: aeson-0.9.0.1.tar.gz Other differences: -- ++ ghc-aeson.spec ++ --- /var/tmp/diff_new_pack.9IKUB4/_old 2016-01-28 17:24:28.0 +0100 +++ /var/tmp/diff_new_pack.9IKUB4/_new 2016-01-28 17:24:28.0 +0100 @@ -20,8 +20,8 @@ %bcond_with tests -Name: ghc-aeson -Version:0.10.0.0 +Name: ghc-%{pkg_name} +Version:0.9.0.1 Release:0 Summary:Fast JSON parsing and encoding License:BSD-3-Clause @@ -41,6 +41,7 @@ BuildRequires: ghc-dlist-devel BuildRequires: ghc-hashable-devel BuildRequires: ghc-mtl-devel +BuildRequires: ghc-old-locale-devel BuildRequires: ghc-scientific-devel BuildRequires: ghc-syb-devel BuildRequires: ghc-template-hask
commit ghc-aeson for openSUSE:Factory
Hello community, here is the log from the commit of package ghc-aeson for openSUSE:Factory checked in at 2016-01-08 15:22:35 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 2015-05-21 08:12:40.0 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-aeson.new/ghc-aeson.changes 2016-01-08 15:22:37.0 +0100 @@ -1,0 +2,74 @@ +Wed Dec 23 15:40:06 UTC 2015 - mimi...@gmail.com + +- update to 0.10.0.0 +* Performance improvements: + + Direct encoding via the new toEncoding method is over 2x faster than toJSON. + (You must write or code-gen a toEncoding implementation to unlock this speedup. + See below for details.) + + Improved string decoding gives a 12% speed win in parsing string-heavy JSON + payloads (very common). + + Encoding and decoding of time-related types are 10x faster (!!) as a result of + bypassing Data.Time.Format and the arbitrary-precision Integer type. + + When using toEncoding, [Char] can be encoded without a conversion to Text. + This is fast and efficient. + + Parsing into an Object is now 5% faster and more allocation-efficient. +* SUBTLE API CHANGES, READ CAREFULLY: + + With the exception of long-deprecated code, the API changes below should be + upwards compatible from older versions of aeson. If you run into upgrade + problems, please file an issue with details. + + The ToJSON class has a new method, toEncoding, that allows direct encoding + from a Haskell value to a lazy bytestring without construction of an + intermediate Value. + + The performance benefits of direct encoding are significant: more than 2x + faster than before, with less than 1/3 the memory usage. + + To preserve API compatibility across upgrades from older versions of this + library, the default implementation of toEncoding uses toJSON. You will not + see any performance improvement unless you write an implementation of + toEncoding, which can be very simple: + instance ToJSON Coord where + toEncoding = genericToEncoding defaultOptions + (Behind the scenes, the encode function uses toEncoding now, so if you + implement toEncoding for your types, you should see a speedup immediately.) + + If you use Template Haskell or GHC Generics to auto-generate your ToJSON + instances, you'll benefit from fast toEncoding implementations for free! + + When converting from a Value to a target Haskell type, FromJSON instances now + provide much better error messages, including a complete JSON path from the +root of the object to the offending element. This greatly eases debugging. + + It is now possible to use Template Haskell to generate FromJSON and ToJSON + instances for types in data families. + + If you use Template Haskell or generics, and used to use the camelTo function + to rename fields, the new camelTo2 function is smarter. For example, camelTo +will rename CamelAPICase to camelapi_case (ugh!), while camelTo2 will map +it to camel_api_case (yay!). + + New ToJSON and FromJSON instances for the following time-related types: Day, + LocalTime. + + The Result type is now an instance of Foldable and Traversable. + + The Data.Aeson.Generic module has been removed. It was deprecated in late 2013. + + The instance of Monad for the Result type lacked an implementation of fail +(oops). This has been corrected. + +--- +Mon Sep 28 18:42:15 UTC 2015 - mimi...@gmail.com + +- update to 0.9.0.1 +* A stray export of encodeToBuilder got away! +* The json and json' parsers are now synonyms for value and value', in conformance + with the looser semantics of RFC 7159. +* Renamed encodeToByteStringBuilder to the more compact encodeToBuilder. +* The dependency on the unordered-containers package was too lax, and has been + corrected. +* Encoding a Scientific value with a huge exponent is now handled efficiently. + (This would previously allocate a huge arbitrary-precision integer, potentially + leading to a denial of service.) +* Handling of strings that contain backslash escape sequences is greatly improved. + For a pathological string containing almost a megabyte of consecutive backslashes, + the new implementation is 27x faster and uses 42x less memory. +* The ToJ
commit ghc-aeson for openSUSE:Factory
Hello community, here is the log from the commit of package ghc-aeson for openSUSE:Factory checked in at 2015-05-21 08:12:39 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 2015-03-23 12:17:20.0 +0100 +++ /work/SRC/openSUSE:Factory/.ghc-aeson.new/ghc-aeson.changes 2015-05-21 08:12:40.0 +0200 @@ -1,0 +2,20 @@ +Wed Apr 22 10:47:20 UTC 2015 - mimi...@gmail.com + +- update to 0.8.0.2 +* Fix ToJSON instance for 15-tuples. +* Support time-1.5. +* Add ToJSON and FromJSON instances for tuples of up to 15 elements. +* Major compiler and library compatibility changes: we have dropped + support for GHC older than 7.4, text older than 1.1, and bytestring + older than 0.10.4.0. Supporting the older versions had become + increasingly difficult, to the point where it was no longer worth + it. +* The performance of encoding to and decoding of bytestrings have both + improved by up to 2x, while also using less memory. +* New dependency: the scientific package lets us parse floating point + numbers more quickly and accurately. +* eitherDecode, decodeStrictWith: fixed bugs. +* Added FromJSON and ToJSON instances for Tree and Scientific. +* Fixed the ToJSON instances for UTCTime and ZonedTime. + +--- Old: _service aeson-0.6.2.0.tar.gz New: aeson-0.8.0.2.tar.gz Other differences: -- ++ ghc-aeson.spec ++ --- /var/tmp/diff_new_pack.btVj7j/_old 2015-05-21 08:12:41.0 +0200 +++ /var/tmp/diff_new_pack.btVj7j/_new 2015-05-21 08:12:41.0 +0200 @@ -1,7 +1,7 @@ # # spec file for package ghc-aeson # -# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2015 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 @@ -18,22 +18,23 @@ %global pkg_name aeson -Name: ghc-aeson -Version:0.6.2.0 +%bcond_with tests + +Name: ghc-%{pkg_name} +Version:0.8.0.2 Release:0 Summary:Fast JSON parsing and encoding License:BSD-3-Clause Group: System/Libraries -Url:http://hackage.haskell.org/package/%{pkg_name} -Source0: http://hackage.haskell.org/packages/archive/%{pkg_name}/%{version}/%{pkg_name}-%{version}.tar.gz +Url:https://hackage.haskell.org/package/%{pkg_name} +Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: ghc-Cabal-devel BuildRequires: ghc-rpm-macros # Begin cabal-rpm deps: BuildRequires: ghc-attoparsec-devel -BuildRequires: ghc-blaze-builder-devel BuildRequires: ghc-bytestring-devel BuildRequires: ghc-containers-devel BuildRequires: ghc-deepseq-devel @@ -41,12 +42,20 @@ BuildRequires: ghc-hashable-devel BuildRequires: ghc-mtl-devel BuildRequires: ghc-old-locale-devel +BuildRequires: ghc-scientific-devel BuildRequires: ghc-syb-devel BuildRequires: ghc-template-haskell-devel BuildRequires: ghc-text-devel BuildRequires: ghc-time-devel BuildRequires: ghc-unordered-containers-devel BuildRequires: ghc-vector-devel +%if %{with tests} +BuildRequires: ghc-HUnit-devel +BuildRequires: ghc-QuickCheck-devel +BuildRequires: ghc-test-framework-devel +BuildRequires: ghc-test-framework-hunit-devel +BuildRequires: ghc-test-framework-quickcheck2-devel +%endif # End cabal-rpm deps %description @@ -55,8 +64,40 @@ To get started, see the documentation for the 'Data.Aeson' module below. -For release notes, see -https://github.com/bos/aeson/blob/master/release-notes.markdown +Parsing performance on an early 2011 MacBook Pro (2.2GHz Core i7), running +64-bit GHC 7.6.3, for mostly-English tweets from Twitter's JSON search API: + +* 0.8 KB: 34124 msg/sec (27.8 MB/sec) + +* 6.4 KB: 6833 msg/sec (43.0 MB/sec) + +* 11.8 KB: 3410 msg/sec (39.2 MB/sec) + +* 31.2 KB: 1157 msg/sec (35.3 MB/sec) + +* 61.5 KB: 542 msg/sec (32.5 MB/sec) + +Handling heavily-escaped text is a little more work. Here is parsing +performance with Japanese tweets, where much of the text is entirely +Unicode-escaped. + +* 14.6 KB: 2101 msg/sec (30.0 MB/sec) + +* 44.1 KB: 667 msg/sec (28.7 MB/sec) + +* 82.9 KB: 360 msg/sec (29.2 MB/sec) + +Encoding performance on the same machine and data: + +* English, 0.8 KB: 109697 msg/sec (89.3 MB/sec) + +* English, 6.4 KB: 18517 msg/sec (116.4 MB/sec) + +* Engish, 61.5 KB: 1963 msg/sec (118.
commit ghc-aeson for openSUSE:Factory
Hello community, here is the log from the commit of package ghc-aeson for openSUSE:Factory checked in at 2015-03-23 12:17:17 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 2014-10-20 07:27:12.0 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-aeson.new/ghc-aeson.changes 2015-03-23 12:17:20.0 +0100 @@ -1,0 +2,6 @@ +Sun Nov 9 15:24:35 UTC 2014 - peter.tromm...@ohm-hochschule.de + +- drop aeson-disable-TH.patch +* Template Haskell (TH) now available on all supprted archs + +--- Old: aeson-disable-TH.patch Other differences: -- ++ ghc-aeson.spec ++ --- /var/tmp/diff_new_pack.U2htku/_old 2015-03-23 12:17:21.0 +0100 +++ /var/tmp/diff_new_pack.U2htku/_new 2015-03-23 12:17:21.0 +0100 @@ -1,7 +1,7 @@ # # spec file for package ghc-aeson # -# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -27,7 +27,6 @@ Url:http://hackage.haskell.org/package/%{pkg_name} Source0: http://hackage.haskell.org/packages/archive/%{pkg_name}/%{version}/%{pkg_name}-%{version}.tar.gz -Patch0: aeson-disable-TH.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: ghc-Cabal-devel @@ -48,7 +47,6 @@ BuildRequires: ghc-time-devel BuildRequires: ghc-unordered-containers-devel BuildRequires: ghc-vector-devel -#ExclusiveArch: %{ghc_arches_with_ghci} # End cabal-rpm deps %description @@ -76,9 +74,6 @@ %prep %setup -q -n %{pkg_name}-%{version} -%ifnarch %{ghc_arches_with_ghci} -%patch0 -p1 -%endif %build %ghc_lib_build -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org
commit ghc-aeson for openSUSE:Factory
Hello community, here is the log from the commit of package ghc-aeson for openSUSE:Factory checked in at 2014-10-20 07:27:10 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 2014-04-02 17:18:42.0 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-aeson.new/ghc-aeson.changes 2014-10-20 07:27:12.0 +0200 @@ -1,0 +2,6 @@ +Sat Oct 18 14:50:27 UTC 2014 - dval...@suse.com + +- disable TH module on arch's without ghci + aeson-disable-TH.patch + +--- New: aeson-disable-TH.patch Other differences: -- ++ ghc-aeson.spec ++ --- /var/tmp/diff_new_pack.dAHfYf/_old 2014-10-20 07:27:13.0 +0200 +++ /var/tmp/diff_new_pack.dAHfYf/_new 2014-10-20 07:27:13.0 +0200 @@ -27,6 +27,7 @@ Url:http://hackage.haskell.org/package/%{pkg_name} Source0: http://hackage.haskell.org/packages/archive/%{pkg_name}/%{version}/%{pkg_name}-%{version}.tar.gz +Patch0: aeson-disable-TH.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: ghc-Cabal-devel @@ -75,6 +76,9 @@ %prep %setup -q -n %{pkg_name}-%{version} +%ifnarch %{ghc_arches_with_ghci} +%patch0 -p1 +%endif %build %ghc_lib_build ++ aeson-disable-TH.patch ++ --- aeson-0.6.2.1/aeson.cabal~ 2013-10-14 12:59:08.0 +0900 +++ aeson-0.6.2.1/aeson.cabal 2014-04-20 15:03:05.037735911 +0900 @@ -98,7 +98,6 @@ Data.Aeson.Generic Data.Aeson.Parser Data.Aeson.Types -Data.Aeson.TH other-modules: Data.Aeson.Functions -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org
commit ghc-aeson for openSUSE:Factory
Hello community, here is the log from the commit of package ghc-aeson for openSUSE:Factory checked in at 2014-04-02 17:18:41 Comparing /work/SRC/openSUSE:Factory/ghc-aeson (Old) and /work/SRC/openSUSE:Factory/.ghc-aeson.new (New) Package is "ghc-aeson" Changes: New Changes file: --- /dev/null 2014-02-13 01:09:38.344032506 +0100 +++ /work/SRC/openSUSE:Factory/.ghc-aeson.new/ghc-aeson.changes 2014-04-02 17:18:42.0 +0200 @@ -0,0 +1,10 @@ +--- +Mon Oct 28 19:50:03 UTC 2013 - sbahl...@suse.com + +- Remove redundant Requires for ghc-compiler + +--- +Mon Oct 7 13:35:59 UTC 2013 - sbahl...@suse.com + +- Initial package - version 0.6.2.0 + New: _service aeson-0.6.2.0.tar.gz ghc-aeson.changes ghc-aeson.spec Other differences: -- ++ ghc-aeson.spec ++ # # spec file for package ghc-aeson # # Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # %global pkg_name aeson Name: ghc-aeson Version:0.6.2.0 Release:0 Summary:Fast JSON parsing and encoding License:BSD-3-Clause Group: System/Libraries Url:http://hackage.haskell.org/package/%{pkg_name} Source0: http://hackage.haskell.org/packages/archive/%{pkg_name}/%{version}/%{pkg_name}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: ghc-Cabal-devel BuildRequires: ghc-rpm-macros # Begin cabal-rpm deps: BuildRequires: ghc-attoparsec-devel BuildRequires: ghc-blaze-builder-devel BuildRequires: ghc-bytestring-devel BuildRequires: ghc-containers-devel BuildRequires: ghc-deepseq-devel BuildRequires: ghc-dlist-devel BuildRequires: ghc-hashable-devel BuildRequires: ghc-mtl-devel BuildRequires: ghc-old-locale-devel BuildRequires: ghc-syb-devel BuildRequires: ghc-template-haskell-devel BuildRequires: ghc-text-devel BuildRequires: ghc-time-devel BuildRequires: ghc-unordered-containers-devel BuildRequires: ghc-vector-devel #ExclusiveArch: %{ghc_arches_with_ghci} # End cabal-rpm deps %description A JSON parsing and encoding library optimized for ease of use and high performance. To get started, see the documentation for the 'Data.Aeson' module below. For release notes, see https://github.com/bos/aeson/blob/master/release-notes.markdown (A note on naming: in Greek mythology, Aeson was the father of Jason.). %package devel Summary:Haskell %{pkg_name} library development files Group: Development/Libraries/Other Provides: %{name}-static = %{version}-%{release} Requires: %{name} = %{version}-%{release} Requires: ghc-compiler = %{ghc_version} %description devel This package provides the Haskell %{pkg_name} library development files. %prep %setup -q -n %{pkg_name}-%{version} %build %ghc_lib_build %install %ghc_lib_install %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.markdown examples %changelog ++ _service ++ -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org