yaml: Support for parsing and rendering YAML documents.
README and API documentation are available at https://www.stackage.org/package/yaml
[Skip to Readme]
Modules
- Data
- Data.Yaml
- Data.Yaml.Aeson
- Data.Yaml.Builder
- Data.Yaml.Config
- Data.Yaml.Include
- Data.Yaml.Internal
- Data.Yaml.Parser
- Data.Yaml.Pretty
- Data.Yaml.TH
- Data.Yaml
Flags
Automatic Flags
| Name | Description | Default |
|---|---|---|
| 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
- yaml-0.11.9.0.tar.gz [browse] (Cabal source package)
- Package description (revised from the package)
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
Candidates
- No Candidates
Readme for yaml-0.11.9.0
[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.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