Low overhead value space Decoder
on top of Aeson’s Parser for combinator style decoding.
This library is compatible with GHC as well as recent versions of GHCJS.
Performance
Decoder a type is a function Value -> Parser a the same as parseJSON
member function of FromJSON class. This means there should be near zero overhead.
Aeson types and functions are reused where possible. Similarly Encoder a type
follow toJSON from ToJSON type class.
Simple benchmark shows that implementation using aeson-combinators performs better
than equivalent derived instance and on par (actually even slightly better though with difference in noise range)
with manually implemented instance.
License
(c) 2020 Marek Fajkus
BSD-3-Clause
Changes
Revision history for aeson-combinators
0.1.1.0 – 2023-09-03
fromDecoder utility to unwrap a Decoder’s function