@hackage HsYAML-aeson0.2.0.2
JSON to YAML Adapter
Categories
License
GPL-2.0-or-later
Maintainer
Andreas Abel
Links
Versions
Installation
Tested Compilers
Dependencies (10)
- base >=4.9 && <5
- bytestring >=0.10.8.1 && <0.13
- containers >=0.5.7.1 && <1
- mtl ^>=2.2.1 || ^>=2.3.1
- text ^>=1.2.3 || ^>=2.0 || ^>=2.1
- vector ^>=0.12.0.2 || ^>=0.13.0.0 Show all…
Dependents (8)
@hackage/hlint, @hackage/dhall-json, @hackage/ghcup, @hackage/pandoc-citeproc, @hackage/fourmolu, @hackage/dhall-yaml, Show all…
Package Flags
exe
(off by default)
Enable exe:yaml-test
component
The YAML 1.2 format provides
a much richer data-model and feature-set
than the JavaScript Object Notation (JSON) format.
However, sometimes it's desirable to ignore the extra capabilities
and treat YAML as if it was merely a more convenient markup format
for humans to write JSON data. To this end this module provides a
compatibility layer atop HsYAML
which allows decoding YAML documents in the more limited JSON data-model while also providing
convenience by reusing aeson's
FromJSON
instances for decoding the YAML data into native Haskell data types.