@hackage yaml0.11.11.2
Support for parsing and rendering YAML documents.
Categories
License
BSD-3-Clause
Maintainer
Michael Snoyman <michael@snoyman.com>
Links
Versions
Installation
Dependencies (17)
- 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 Show all…
Dependents (425)
@hackage/hopenpgp-tools, @hackage/yaml2owl, @hackage/khph, @hackage/cabal-scaffold, @hackage/craft, @hackage/commonmark-simple, Show all…
Package Flags
no-examples
(on by default)
don't build the examples
no-exe
(on by default)
don't install the yaml2json or json2yaml executables
yaml
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.Includesupports adding!includedirectives to your YAML files.Data.Yaml.BuilderandData.Yaml.Parserallow 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.Aesonis currently a re-export ofData.Yamlto 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