yaml-streamly: Support for parsing and rendering YAML documents.

[ bsd3, data, library ] [ Propose Tags ]

Rewrite of yaml in streamly

[Skip to Readme]


Automatic Flags

don't build the examples


don't install the yaml2json or json2yaml executables


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


Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.

Maintainer's Corner

For package maintainers and hackage trustees


  • No Candidates
Versions [RSS] 0.12.0, 0.12.1
Change log ChangeLog.md
Dependencies aeson (>=0.11), attoparsec (>=, base (>=4.9.1 && <5), bytestring (>=, containers, deepseq, directory, filepath, libyaml-streamly (>=0.2.1), mtl, optparse-applicative, raw-strings-qq, safe-exceptions, scientific (>=0.3), streamly (>=0.8.0), template-haskell, text, transformers (>=0.1), unordered-containers, vector, yaml-streamly [details]
License BSD-3-Clause
Author Michael Snoyman <michael@snoyman.com>, Anton Ageev <antage@gmail.com>,Kirill Simonov, Julian Ospald <hasufell@posteo.de>
Maintainer Julian Ospald <hasufell@posteo.de>
Revised Revision 1 made by maerwald at 2021-11-30T19:23:37Z
Category Data
Home page https://github.com/hasufell/streamly-yaml#readme
Bug tracker https://github.com/hasufell/streamly-yaml
Source repo head: git clone https://github.com/hasufell/streamly-yaml
Uploaded by maerwald at 2021-11-30T19:12:22Z
Distributions NixOS:0.12.1
Executables yaml2json, json2yaml, examples
Downloads 719 total (41 in the last 30 days)
Rating 2.0 (votes: 1) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2021-11-30 [all 1 reports]

Readme for yaml-streamly-0.12.1

[back to package description]


Provides support for parsing and emitting Yaml documents.

Data.Yaml provides a high-level interface based around the JSON datatypes provided by the aeson package. It uses Text.Libyaml from libyaml in its implementation of the low-level yaml encoder/decoder.


Usage examples can be found in the Data.Yaml documentation or in the examples directory.

Additional yaml modules

  • Data.Yaml.Include supports adding !include directives to your YAML files.
  • Data.Yaml.Builder and Data.Yaml.Parser allow more fine-grained control of parsing an rendering, as opposed to just using the aeson typeclass and datatype system for parsing and rendering.
  • Data.Yaml.Aeson is currently a re-export of Data.Yaml to explicitly choose to use the aeson-compatible API.


Converters json2yaml and yaml2json can be built by disabling flag no-exe, e.g., one of:

cabal install yaml -f-no-exe
stack install yaml --flag yaml:-no-exe