aeson-combinators: Aeson combinators for dead simple JSON decoding

[ bsd3, json, library, text, web ] [ Propose Tags ]

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


[Skip to Readme]
Versions [faq] 0.0.1.0, 0.0.1.1, 0.0.2.0, 0.0.2.1
Change log CHANGELOG.md
Dependencies aeson, base (==4.*), bytestring, containers, fail, scientific, text, time, time-compat, unordered-containers, uuid-types, vector, void [details]
License BSD-3-Clause
Copyright (c) 2020 Marek Fajkus
Author Marek Fajkus <marek.faj@gmail.com>
Maintainer Marek Fajkus <marek.faj@gmail.com>
Category Text, Web, JSON
Home page https://github.com/turboMaCk/aeson-combinators
Bug tracker https://github.com/turboMaCk/aeson-combinators/issues
Source repo head: git clone https://github.com/turboMaCk/aeson-combinators.git
Uploaded by MarekFajkus at Sun Mar 8 18:07:05 UTC 2020
Distributions NixOS:0.0.2.1
Downloads 224 total (224 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs available [build log]
Last success reported on 2020-03-08 [all 1 reports]

Modules

[Index] [Quick Jump]

Downloads

Maintainer's Corner

For package maintainers and hackage trustees


Readme for aeson-combinators-0.0.2.1

[back to package description]

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