yaml: Support for parsing and rendering YAML documents.

[ bsd3, data, library ] [ Propose Tags ] [ Report a vulnerability ]

README and API documentation are available at https://www.stackage.org/package/yaml


[Skip to Readme]

Flags

Automatic Flags
NameDescriptionDefault
no-examples

don't build the examples

Enabled
no-exe

don't install the yaml2json or json2yaml executables

Enabled

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

Downloads

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

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.0.0, 0.0.1, 0.0.2, 0.0.3, 0.0.4, 0.2.0, 0.2.1, 0.3.0, 0.4.0, 0.4.1, 0.4.1.1, 0.4.1.2, 0.5.0, 0.5.0.1, 0.5.1, 0.5.1.1, 0.5.1.2, 0.5.2, 0.6.0, 0.6.1, 0.7.0, 0.7.0.1, 0.7.0.2, 0.7.0.3, 0.7.0.4, 0.8.0, 0.8.0.1, 0.8.0.2, 0.8.1, 0.8.1.1, 0.8.1.2, 0.8.2, 0.8.2.1, 0.8.2.2, 0.8.2.3, 0.8.2.4, 0.8.3, 0.8.4, 0.8.4.1, 0.8.5, 0.8.5.1, 0.8.5.2, 0.8.5.3, 0.8.5.4, 0.8.6, 0.8.6.1, 0.8.6.2, 0.8.7, 0.8.7.1, 0.8.7.2, 0.8.8, 0.8.8.1, 0.8.8.2, 0.8.8.3, 0.8.8.4, 0.8.9, 0.8.9.1, 0.8.9.2, 0.8.9.3, 0.8.9.4, 0.8.10, 0.8.10.1, 0.8.11, 0.8.12, 0.8.13, 0.8.14, 0.8.15.1, 0.8.15.2, 0.8.15.3, 0.8.16, 0.8.17, 0.8.17.1, 0.8.17.2, 0.8.18, 0.8.18.1, 0.8.18.2, 0.8.18.3, 0.8.18.4, 0.8.18.5, 0.8.18.6, 0.8.18.7, 0.8.19.0, 0.8.20, 0.8.21, 0.8.21.1, 0.8.21.2, 0.8.22, 0.8.22.1, 0.8.23, 0.8.23.1, 0.8.23.3, 0.8.24, 0.8.25, 0.8.25.1, 0.8.26, 0.8.27, 0.8.28, 0.8.29, 0.8.30, 0.8.31, 0.8.31.1, 0.8.32, 0.9.0, 0.10.0, 0.10.1, 0.10.1.1, 0.10.2.0, 0.10.3.0, 0.10.4.0, 0.11.0.0, 0.11.1.0, 0.11.1.1, 0.11.1.2, 0.11.2.0, 0.11.3.0, 0.11.4.0, 0.11.5.0, 0.11.6.0, 0.11.7.0, 0.11.8.0, 0.11.9.0, 0.11.10.0, 0.11.11.0, 0.11.11.1, 0.11.11.2
Change log ChangeLog.md
Dependencies aeson (>=0.11), attoparsec (>=0.11.3.0), base (>=4.9.1 && <5), bytestring (>=0.9.1.4), conduit (>=1.2.8 && <1.4), containers, directory, filepath, libyaml (>=0.1 && <0.2), mtl, optparse-applicative, raw-strings-qq, resourcet (>=0.3 && <1.4), scientific (>=0.3), template-haskell, text, transformers (>=0.1), unordered-containers, vector, yaml [details]
License BSD-3-Clause
Author Michael Snoyman <michael@snoyman.com>, Anton Ageev <antage@gmail.com>,Kirill Simonov
Maintainer Michael Snoyman <michael@snoyman.com>
Revised Revision 2 made by jack at 2023-07-04T04:42:08Z
Category Data
Home page https://github.com/snoyberg/yaml#readme
Bug tracker https://github.com/snoyberg/yaml/issues
Source repo head: git clone https://github.com/snoyberg/yaml
Uploaded by MichaelSnoyman at 2023-07-01T18:43:54Z
Distributions Arch:0.11.11.2, Debian:0.11.4.0, Fedora:0.11.11.2, FreeBSD:0.8.13, LTSHaskell:0.11.11.2, NixOS:0.11.11.2, Stackage:0.11.11.2, openSUSE:0.11.11.2
Reverse Dependencies 252 direct, 490 indirect [details]
Executables yaml2json, json2yaml, examples
Downloads 309156 total (853 in the last 30 days)
Rating 2.25 (votes: 5) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]

Readme for yaml-0.11.11.2

[back to package description]

yaml

GitHub build and test status Appveyor build status

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.

Examples

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.

Executables

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