Accepting request 352123 from devel:languages:haskell:lts
- 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
OBS-URL: https://build.opensuse.org/request/show/352123
OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-aeson?expand=0&rev=10
2016-01-06 10:17:01 +01:00
|
|
|
-------------------------------------------------------------------
|
|
|
|
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.
|
|
|
|
|
2015-05-04 20:21:44 +02:00
|
|
|
-------------------------------------------------------------------
|
|
|
|
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.
|
|
|
|
|
2015-03-19 20:45:30 +01:00
|
|
|
-------------------------------------------------------------------
|
|
|
|
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
|
|
|
|
|
2014-10-18 17:05:55 +02:00
|
|
|
-------------------------------------------------------------------
|
|
|
|
Sat Oct 18 14:50:27 UTC 2014 - dvaleev@suse.com
|
|
|
|
|
|
|
|
- disable TH module on arch's without ghci
|
|
|
|
aeson-disable-TH.patch
|
|
|
|
|
2013-10-28 20:51:54 +01:00
|
|
|
-------------------------------------------------------------------
|
|
|
|
Mon Oct 28 19:50:03 UTC 2013 - sbahling@suse.com
|
|
|
|
|
|
|
|
- Remove redundant Requires for ghc-compiler
|
|
|
|
|
2013-10-28 20:49:56 +01:00
|
|
|
-------------------------------------------------------------------
|
|
|
|
Mon Oct 7 13:35:59 UTC 2013 - sbahling@suse.com
|
|
|
|
|
|
|
|
- Initial package - version 0.6.2.0
|
|
|
|
|