From 2edb6a9270e7312cefb3d7ad8eda2c23cb04384440ffffbe7ac27d0f027cc8bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20S=C3=BAkup?= Date: Sat, 28 Dec 2019 14:39:59 +0000 Subject: [PATCH 1/5] osc copypac from project:devel:languages:haskell:ghc-8.8.x package:ghc-aeson revision:5, using keep-link OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-aeson?expand=0&rev=52 --- ghc-aeson.changes | 330 +--------------------------------------------- 1 file changed, 4 insertions(+), 326 deletions(-) diff --git a/ghc-aeson.changes b/ghc-aeson.changes index 9430045..af6a8a7 100644 --- a/ghc-aeson.changes +++ b/ghc-aeson.changes @@ -1,5 +1,5 @@ ------------------------------------------------------------------- -Wed Nov 13 03:02:25 UTC 2019 - psimons@suse.com +Wed Nov 13 03:02:04 UTC 2019 - psimons@suse.com - Update aeson to version 1.4.6.0. ### 1.4.6.0 @@ -10,12 +10,7 @@ Wed Nov 13 03:02:25 UTC 2019 - psimons@suse.com * 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. - -------------------------------------------------------------------- -Tue Sep 10 02:02:48 UTC 2019 - psimons@suse.com +Tue Sep 10 02:02:41 UTC 2019 - psimons@suse.com - Update aeson to version 1.4.5.0. ### 1.4.5.0 @@ -27,324 +22,7 @@ Tue Sep 10 02:02:48 UTC 2019 - psimons@suse.com * Travis build for GHC 8.8, thanks to Oleg Grenrus. ------------------------------------------------------------------- -Tue Jun 25 02:02:15 UTC 2019 - psimons@suse.com +Wed Aug 28 17:31:04 UTC 2019 - psimons@suse.com -- Update aeson to version 1.4.4.0. - ### 1.4.4.0 +- Add aeson at version 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. - -------------------------------------------------------------------- -Tue Apr 30 09:23:03 UTC 2019 - psimons@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. - -------------------------------------------------------------------- -Sat Jan 19 12:33:33 UTC 2019 - Peter Simons - -- Update Cabal build instructions for more accurate dependencies. - -------------------------------------------------------------------- -Sun Nov 25 03:01:12 UTC 2018 - psimons@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 - -------------------------------------------------------------------- -Thu Oct 4 09:42:52 UTC 2018 - psimons@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. - -------------------------------------------------------------------- -Wed Jul 18 14:26:12 UTC 2018 - psimons@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 - psimons@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 `1e1000000000` 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 - -------------------------------------------------------------------- -Mon May 14 17:02:11 UTC 2018 - psimons@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. - -------------------------------------------------------------------- -Thu Aug 3 15:38:38 UTC 2017 - psimons@suse.com - -- Updated with latest spec-cleaner version 0.9.8-8-geadfbbf. - -------------------------------------------------------------------- -Thu Jul 27 14:07:48 UTC 2017 - psimons@suse.com - -- Update to version 1.1.2.0 revision 1. - -------------------------------------------------------------------- -Tue Apr 4 11:04:08 UTC 2017 - psimons@suse.com - -- Update to version 1.0.2.1 revision 1 with cabal2obs. - -------------------------------------------------------------------- -Sun Feb 12 14:08:22 UTC 2017 - psimons@suse.com - -- Update to version 1.0.2.1 with cabal2obs. - -------------------------------------------------------------------- -Thu Jan 26 16:20:17 UTC 2017 - psimons@suse.com - -- Update to version 0.11.3.0 with cabal2obs. - -------------------------------------------------------------------- -Mon Sep 19 10:39:23 UTC 2016 - psimons@suse.com - -- Update to version 0.11.2.1 revision 1 with cabal2obs. - -------------------------------------------------------------------- -Wed Aug 17 18:30:25 UTC 2016 - psimons@suse.com - -- Update to version 0.11.2.1 revision 0 with cabal2obs. - -------------------------------------------------------------------- -Sun Jul 10 17:33:06 UTC 2016 - psimons@suse.com - -- Update to version 0.11.2.0 revision 1 with cabal2obs. - -------------------------------------------------------------------- -Thu May 26 06:06:35 UTC 2016 - mimi.vx@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.vx@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. - -------------------------------------------------------------------- -Mon Sep 28 18:42:15 UTC 2015 - mimi.vx@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 ToJSON instance for UTCTime is rendered with higher (picosecond) resolution. -* The value parser now correctly handles leading whitespace. -* New instances of ToJSON and FromJSON for Data.Sequence and Data.Functor.Identity. - The Value type now has a Read instance. -* ZonedTime parser ordering now favours the standard JSON format, increasing - efficiency in the common case. -* Encoding to a Text.Builder now escapes '<' and '>' characters, to reduce XSS risk. - -------------------------------------------------------------------- -Wed Apr 22 10:47:20 UTC 2015 - mimi.vx@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. - -------------------------------------------------------------------- -Sun Nov 9 15:24:35 UTC 2014 - peter.trommler@ohm-hochschule.de - -- drop aeson-disable-TH.patch -* Template Haskell (TH) now available on all supprted archs - -------------------------------------------------------------------- -Sat Oct 18 14:50:27 UTC 2014 - dvaleev@suse.com - -- disable TH module on arch's without ghci - aeson-disable-TH.patch - -------------------------------------------------------------------- -Mon Oct 28 19:50:03 UTC 2013 - sbahling@suse.com - -- Remove redundant Requires for ghc-compiler - -------------------------------------------------------------------- -Mon Oct 7 13:35:59 UTC 2013 - sbahling@suse.com - -- Initial package - version 0.6.2.0 From ec22357bb8f9bfc3d74a04a294c4ccffb107c87d8c20914c93cd83fe42cfbbd1 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Sun, 29 Dec 2019 02:01:44 +0000 Subject: [PATCH 2/5] osc copypac from project:devel:languages:haskell:ghc-8.6.x package:ghc-aeson revision:15, using keep-link OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-aeson?expand=0&rev=53 --- ghc-aeson.changes | 330 +++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 326 insertions(+), 4 deletions(-) diff --git a/ghc-aeson.changes b/ghc-aeson.changes index af6a8a7..9430045 100644 --- a/ghc-aeson.changes +++ b/ghc-aeson.changes @@ -1,5 +1,5 @@ ------------------------------------------------------------------- -Wed Nov 13 03:02:04 UTC 2019 - psimons@suse.com +Wed Nov 13 03:02:25 UTC 2019 - psimons@suse.com - Update aeson to version 1.4.6.0. ### 1.4.6.0 @@ -10,7 +10,12 @@ Wed Nov 13 03:02:04 UTC 2019 - psimons@suse.com * Add `formatPath` and `formatRelativePath` functions to turn a `JSONPath` into a `String`, thanks to Robbie McMichael ------------------------------------------------------------------- -Tue Sep 10 02:02:41 UTC 2019 - psimons@suse.com +Fri Nov 8 16:13:10 UTC 2019 - Peter Simons + +- Drop obsolete group attributes. + +------------------------------------------------------------------- +Tue Sep 10 02:02:48 UTC 2019 - psimons@suse.com - Update aeson to version 1.4.5.0. ### 1.4.5.0 @@ -22,7 +27,324 @@ Tue Sep 10 02:02:41 UTC 2019 - psimons@suse.com * Travis build for GHC 8.8, thanks to Oleg Grenrus. ------------------------------------------------------------------- -Wed Aug 28 17:31:04 UTC 2019 - psimons@suse.com +Tue Jun 25 02:02:15 UTC 2019 - psimons@suse.com -- Add aeson at version 1.4.4.0. +- 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. + +------------------------------------------------------------------- +Tue Apr 30 09:23:03 UTC 2019 - psimons@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. + +------------------------------------------------------------------- +Sat Jan 19 12:33:33 UTC 2019 - Peter Simons + +- Update Cabal build instructions for more accurate dependencies. + +------------------------------------------------------------------- +Sun Nov 25 03:01:12 UTC 2018 - psimons@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 + +------------------------------------------------------------------- +Thu Oct 4 09:42:52 UTC 2018 - psimons@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. + +------------------------------------------------------------------- +Wed Jul 18 14:26:12 UTC 2018 - psimons@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 - psimons@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 `1e1000000000` 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 + +------------------------------------------------------------------- +Mon May 14 17:02:11 UTC 2018 - psimons@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. + +------------------------------------------------------------------- +Thu Aug 3 15:38:38 UTC 2017 - psimons@suse.com + +- Updated with latest spec-cleaner version 0.9.8-8-geadfbbf. + +------------------------------------------------------------------- +Thu Jul 27 14:07:48 UTC 2017 - psimons@suse.com + +- Update to version 1.1.2.0 revision 1. + +------------------------------------------------------------------- +Tue Apr 4 11:04:08 UTC 2017 - psimons@suse.com + +- Update to version 1.0.2.1 revision 1 with cabal2obs. + +------------------------------------------------------------------- +Sun Feb 12 14:08:22 UTC 2017 - psimons@suse.com + +- Update to version 1.0.2.1 with cabal2obs. + +------------------------------------------------------------------- +Thu Jan 26 16:20:17 UTC 2017 - psimons@suse.com + +- Update to version 0.11.3.0 with cabal2obs. + +------------------------------------------------------------------- +Mon Sep 19 10:39:23 UTC 2016 - psimons@suse.com + +- Update to version 0.11.2.1 revision 1 with cabal2obs. + +------------------------------------------------------------------- +Wed Aug 17 18:30:25 UTC 2016 - psimons@suse.com + +- Update to version 0.11.2.1 revision 0 with cabal2obs. + +------------------------------------------------------------------- +Sun Jul 10 17:33:06 UTC 2016 - psimons@suse.com + +- Update to version 0.11.2.0 revision 1 with cabal2obs. + +------------------------------------------------------------------- +Thu May 26 06:06:35 UTC 2016 - mimi.vx@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.vx@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. + +------------------------------------------------------------------- +Mon Sep 28 18:42:15 UTC 2015 - mimi.vx@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 ToJSON instance for UTCTime is rendered with higher (picosecond) resolution. +* The value parser now correctly handles leading whitespace. +* New instances of ToJSON and FromJSON for Data.Sequence and Data.Functor.Identity. + The Value type now has a Read instance. +* ZonedTime parser ordering now favours the standard JSON format, increasing + efficiency in the common case. +* Encoding to a Text.Builder now escapes '<' and '>' characters, to reduce XSS risk. + +------------------------------------------------------------------- +Wed Apr 22 10:47:20 UTC 2015 - mimi.vx@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. + +------------------------------------------------------------------- +Sun Nov 9 15:24:35 UTC 2014 - peter.trommler@ohm-hochschule.de + +- drop aeson-disable-TH.patch +* Template Haskell (TH) now available on all supprted archs + +------------------------------------------------------------------- +Sat Oct 18 14:50:27 UTC 2014 - dvaleev@suse.com + +- disable TH module on arch's without ghci + aeson-disable-TH.patch + +------------------------------------------------------------------- +Mon Oct 28 19:50:03 UTC 2013 - sbahling@suse.com + +- Remove redundant Requires for ghc-compiler + +------------------------------------------------------------------- +Mon Oct 7 13:35:59 UTC 2013 - sbahling@suse.com + +- Initial package - version 0.6.2.0 From 1658083ceba5c4b5e64154dddc936ab22e52a609317b6a5e65045edefa7113d6 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Tue, 24 Mar 2020 08:13:52 +0000 Subject: [PATCH 3/5] osc copypac from project:devel:languages:haskell:ghc-8.8.x package:ghc-aeson revision:7, using keep-link OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-aeson?expand=0&rev=54 --- aeson-1.4.6.0.tar.gz | 3 --- aeson-1.4.7.0.tar.gz | 3 +++ ghc-aeson.changes | 63 ++++++++++++++++++++++++++++++++++++++++++++ ghc-aeson.spec | 7 ++--- 4 files changed, 70 insertions(+), 6 deletions(-) delete mode 100644 aeson-1.4.6.0.tar.gz create mode 100644 aeson-1.4.7.0.tar.gz diff --git a/aeson-1.4.6.0.tar.gz b/aeson-1.4.6.0.tar.gz deleted file mode 100644 index a79a8d6..0000000 --- a/aeson-1.4.6.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:923fb2c6e224c4c0d1848174b1010592f31cd149f538923efd87f8a6b4b3488b -size 276713 diff --git a/aeson-1.4.7.0.tar.gz b/aeson-1.4.7.0.tar.gz new file mode 100644 index 0000000..f65a627 --- /dev/null +++ b/aeson-1.4.7.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b059b81c9992102717a5e0bd12c675a5a2f3e5eb9e60cf7ee8569a61549fd397 +size 279038 diff --git a/ghc-aeson.changes b/ghc-aeson.changes index 9430045..1d4fac3 100644 --- a/ghc-aeson.changes +++ b/ghc-aeson.changes @@ -1,3 +1,66 @@ +------------------------------------------------------------------- +Tue Mar 24 08:07:12 UTC 2020 - psimons@suse.com + +- Update aeson to version 1.4.7.0. + ### 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. + ------------------------------------------------------------------- Wed Nov 13 03:02:25 UTC 2019 - psimons@suse.com diff --git a/ghc-aeson.spec b/ghc-aeson.spec index 01f5b27..645134e 100644 --- a/ghc-aeson.spec +++ b/ghc-aeson.spec @@ -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,7 +19,7 @@ %global pkg_name aeson %bcond_with tests Name: ghc-%{pkg_name} -Version: 1.4.6.0 +Version: 1.4.7.0 Release: 0 Summary: Fast JSON parsing and encoding License: BSD-3-Clause @@ -27,7 +27,7 @@ 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 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 +48,7 @@ BuildRequires: ghc-vector-devel %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 From faa78b8929192e63de625ea76815a25850df123846e644f963d4cd7166e12ce5 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Wed, 1 Apr 2020 17:26:00 +0000 Subject: [PATCH 4/5] osc copypac from project:devel:languages:haskell:ghc-8.8.x package:ghc-aeson revision:9, using keep-link OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-aeson?expand=0&rev=55 --- aeson-1.4.7.0.tar.gz | 3 - aeson-1.4.7.1.tar.gz | 3 + aeson.cabal | 267 +++++++++++++++++++++++++++++++++++++++++++ ghc-aeson.changes | 8 ++ ghc-aeson.spec | 4 +- 5 files changed, 281 insertions(+), 4 deletions(-) delete mode 100644 aeson-1.4.7.0.tar.gz create mode 100644 aeson-1.4.7.1.tar.gz create mode 100644 aeson.cabal diff --git a/aeson-1.4.7.0.tar.gz b/aeson-1.4.7.0.tar.gz deleted file mode 100644 index f65a627..0000000 --- a/aeson-1.4.7.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b059b81c9992102717a5e0bd12c675a5a2f3e5eb9e60cf7ee8569a61549fd397 -size 279038 diff --git a/aeson-1.4.7.1.tar.gz b/aeson-1.4.7.1.tar.gz new file mode 100644 index 0000000..e6a147c --- /dev/null +++ b/aeson-1.4.7.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:07e746655fd9bec81c59927c5617877ff4fcd81d0df45c5fb8ef154fb8f40294 +size 277911 diff --git a/aeson.cabal b/aeson.cabal new file mode 100644 index 0000000..ed6c825 --- /dev/null +++ b/aeson.cabal @@ -0,0 +1,267 @@ +name: aeson +version: 1.4.7.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. + . + (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 + tests/golden/*.expected + 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.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.7.0.0 && < 5, + 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, + text >= 1.2.3.0 && < 1.3, + time >= 1.4 && < 1.11 + + if impl(ghc >= 8.0) + build-depends: bytestring >= 0.10.8.1 + + -- Compat + build-depends: + base-compat-batteries >= 0.10.0 && < 0.12, + time-compat >= 1.9.2.2 && < 1.10 + + if !impl(ghc >= 8.6) + build-depends: + contravariant >=1.4.1 && <1.6 + + if !impl(ghc >= 8.0) + -- `Data.Semigroup` and `Control.Monad.Fail` and `Control.Monad.IO.Class` are available in base only since GHC 8.0 / base 4.9 + build-depends: + semigroups >= 0.18.5 && < 0.20, + transformers >= 0.3.0.0 && < 0.6, + transformers-compat >= 0.6.2 && < 0.7, + fail == 4.9.* + + 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 && < 1.2, + void >= 0.7.2 && < 0.8 + + -- cannot use latest version + build-depends: + unordered-containers >= 0.2.8.0 && < 0.3, + + -- not in LTS-12.10 + tagged >= 0.8.5 && < 0.9, + primitive >= 0.6.3.0 && < 0.8 + + -- Other dependencies + build-depends: + attoparsec >= 0.13.2.2 && < 0.14, + dlist >= 0.8.0.4 && < 0.9, + hashable >= 1.2.7.0 && < 1.4, + scientific >= 0.3.6.2 && < 0.4, + th-abstraction >= 0.2.8.0 && < 0.4, + uuid-types >= 1.0.3 && < 1.1, + vector >= 0.12.0.1 && < 0.13 + + ghc-options: -Wall + + if flag(developer) + ghc-options: -Werror + ghc-prof-options: -auto-all + + if flag(fast) + ghc-options: -O0 + else + ghc-options: -O2 + + include-dirs: include + if impl(ghcjs) || !flag(cffi) + hs-source-dirs: pure + other-modules: Data.Aeson.Parser.UnescapePure + else + c-sources: cbits/unescape_string.c + cpp-options: -DCFFI + hs-source-dirs: ffi + other-modules: Data.Aeson.Parser.UnescapeFFI + +test-suite tests + default-language: Haskell2010 + type: exitcode-stdio-1.0 + hs-source-dirs: tests ffi pure + main-is: Tests.hs + c-sources: cbits/unescape_string.c + ghc-options: -Wall -threaded -rtsopts + + other-modules: + Data.Aeson.Parser.UnescapeFFI + Data.Aeson.Parser.UnescapePure + DataFamilies.Properties + DataFamilies.Instances + DataFamilies.Encoders + DataFamilies.Types + Encoders + ErrorMessages + Functions + Instances + Options + PropUtils + Properties + PropertyGeneric + PropertyKeys + PropertyRoundTrip + PropertyRTFunctors + PropertyTH + SerializationFormatSpec + Types + UnitTests + UnitTests.NullaryConstructors + + build-depends: + QuickCheck >= 2.10.0.1 && < 2.14, + aeson, + integer-logarithms >= 1 && <1.1, + attoparsec, + base, + base-compat, + base-orphans >= 0.5.3 && <0.9, + base16-bytestring, + containers, + directory, + dlist, + Diff >= 0.4 && < 0.5, + filepath, + generic-deriving >= 1.10 && < 1.14, + ghc-prim >= 0.2, + hashable >= 1.2.4.0, + scientific, + tagged, + template-haskell, + tasty, + tasty-golden, + tasty-hunit, + tasty-quickcheck, + text, + time, + time-compat, + unordered-containers, + uuid-types, + vector, + quickcheck-instances >= 0.3.21 && <0.4 + + if flag(bytestring-builder) + build-depends: bytestring >= 0.9 && < 0.10.4, + bytestring-builder >= 0.10.4 && < 1 + else + build-depends: bytestring >= 0.10.4 + + if !impl(ghc >= 8.0) + build-depends: + semigroups >= 0.18.2 && < 0.20, + transformers >= 0.2.2.0, + transformers-compat >= 0.3 + + if !impl(ghc >= 7.10) + build-depends: nats >=1 && <1.2, + void >=0.7.2 && <0.8 + + if impl(ghc >= 7.8) + build-depends: hashable-time >= 0.2 && <0.3 + + if flag(fast) + ghc-options: -fno-enable-rewrite-rules + +source-repository head + type: git + location: git://github.com/bos/aeson.git diff --git a/ghc-aeson.changes b/ghc-aeson.changes index 1d4fac3..f72030a 100644 --- a/ghc-aeson.changes +++ b/ghc-aeson.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Fri Mar 27 07:01:50 UTC 2020 - psimons@suse.com + +- Update aeson to version 1.4.7.1. + #### 1.4.7.1 + + * GHC 8.10 compatibility, thanks to Ryan Scott. + ------------------------------------------------------------------- Tue Mar 24 08:07:12 UTC 2020 - psimons@suse.com diff --git a/ghc-aeson.spec b/ghc-aeson.spec index 645134e..434bf7a 100644 --- a/ghc-aeson.spec +++ b/ghc-aeson.spec @@ -19,12 +19,13 @@ %global pkg_name aeson %bcond_with tests Name: ghc-%{pkg_name} -Version: 1.4.7.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-batteries-devel @@ -83,6 +84,7 @@ This package provides the Haskell %{pkg_name} library development files. %prep %setup -q -n %{pkg_name}-%{version} +cp -p %{SOURCE1} %{pkg_name}.cabal %build %ghc_lib_build From ff7560d739ed4b52ca9c01503aa7132be492f4c4930f0fa27fba04783c0d3c49 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Wed, 6 May 2020 13:42:09 +0000 Subject: [PATCH 5/5] osc copypac from project:devel:languages:haskell:ghc-8.10.x package:ghc-aeson revision:9, using keep-link OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-aeson?expand=0&rev=56 --- ghc-aeson.changes | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/ghc-aeson.changes b/ghc-aeson.changes index f72030a..6220c9a 100644 --- a/ghc-aeson.changes +++ b/ghc-aeson.changes @@ -1,15 +1,11 @@ ------------------------------------------------------------------- -Fri Mar 27 07:01:50 UTC 2020 - psimons@suse.com +Wed May 6 06:54:16 UTC 2020 - psimons@suse.com - Update aeson to version 1.4.7.1. #### 1.4.7.1 * GHC 8.10 compatibility, thanks to Ryan Scott. -------------------------------------------------------------------- -Tue Mar 24 08:07:12 UTC 2020 - psimons@suse.com - -- Update aeson to version 1.4.7.0. ### 1.4.7.0 Long overdue release (once again), so there's quite a bit of stuff