aeson-combinators

Aeson combinators for dead simple JSON decoding https://github.com/turboMaCk/aeson-combinators

Version on this page:0.0.2.1
LTS Haskell 16.20:0.0.4.0
Stackage Nightly 2020-10-31:0.0.4.0
Latest on Hackage:0.0.4.0

See all snapshots aeson-combinators appears in

BSD-3-Clause licensed and maintained by Marek Fajkus

Module documentation for 0.0.2.1

This version can be pinned in stack with:aeson-combinators-0.0.2.1@sha256:51512a80aabb81d603c577227e4c8e97f27dd9be0f66bda3fa7776cae6b167c4,2260

Aeson Combinators

Build Status

This library defines low overhead value space Decoder on top of Aeson’s Parser for combinator style decoding.

This library is compatible with GHC 7.6 and later as well as recent versions of GHCJS.

Encoding to JSON is currently not supported but might be added in the future version.

I wrote a blob post describing what this library attempts to solve.

Internals

This library introduces as low overhead over Aeson API as possible. Decoder a type is a function Value -> Parser a same as fromJSON function of FromJSON class. This means there should be near zero overhead. Aeson types and functions are reused where possible.

TODO

  • [x] Documentation
  • [x] Support for more GHC versions
  • [x] Default decoders for Containers
  • [ ] Encoding API

License

(c) 2020 Marek Fajkus BSD-3-Clause

Changes

Revision history for aeson-combinators

0.0.2.1 – 2020-03-08

  • Add README to extra source files

0.0.2.0 – 2020-03-08

  • GHCJS compatibility

0.0.1.1 – 2020-03-01

  • Fixes and improvements in documentation
  • Add source-repository to cabal file

0.0.1.0 – 2020-02-29

  • First version. Released on an unsuspecting world.