HsYAML-aeson: JSON to YAML Adapter

[ codec, gpl, json, library, text, web, yaml ] [ Propose Tags ] [ Report a vulnerability ]

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.

Modules

[Index] [Quick Jump]

Flags

Manual Flags

NameDescriptionDefault
exe

Enable exe:yaml-test component

Disabled

Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

Versions [RSS] 0.1.0.0, 0.2.0.0, 0.2.0.1, 0.2.0.2
Change log CHANGELOG.md
Dependencies aeson (>=1.4.0.0 && <1.5 || >=1.5.0.0 && <1.6 || >=2.0.0.0 && <2.1 || >=2.1.0.0 && <2.2 || >=2.2.0.0 && <2.3), base (>=4.9 && <5), bytestring (>=0.10.8.1 && <0.13), containers (>=0.5.7.1 && <1), HsYAML (>=0.2.0 && <0.3), mtl (>=2.2.1 && <2.3 || >=2.3.1 && <2.4), scientific (>=0.3.6.2 && <0.4), text (>=1.2.3 && <1.3 || >=2.0 && <2.2), unordered-containers (>=0.2 && <0.3), vector (>=0.12.0.2 && <0.13 || >=0.13.0.0 && <0.14) [details]
Tested with ghc ==9.12.1, ghc ==9.10.1, ghc ==9.8.4, ghc ==9.6.6, ghc ==9.4.8, ghc ==9.2.8, ghc ==9.0.2, ghc ==8.10.7, ghc ==8.8.4, ghc ==8.6.5, ghc ==8.4.4, ghc ==8.2.2, ghc ==8.0.2
License GPL-2.0-or-later
Copyright 2018-2019 Herbert Valerio Riedel
Author Herbert Valerio Riedel
Maintainer Andreas Abel
Category Text, Codec, Web, JSON, YAML
Source repo head: git clone https://github.com/haskell-hvr/HsYAML-aeson.git
Uploaded by AndreasAbel at 2025-03-11T20:30:46Z
Distributions Arch:0.2.0.1, LTSHaskell:0.2.0.1, NixOS:0.2.0.1, Stackage:0.2.0.2
Reverse Dependencies 7 direct, 76 indirect [details]
Executables yaml-test
Downloads 14540 total (97 in the last 30 days)
Rating 2.25 (votes: 2) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2025-03-11 [all 1 reports]