HsYAML: Pure Haskell YAML 1.2 processor
HsYAML
is a YAML 1.2 processor, i.e. a library for parsing and serializing YAML documents.
Features of HsYAML
include:
Pure Haskell implementation with small dependency footprint and emphasis on strict compliance with the YAML 1.2 specification.
Direct decoding to native Haskell types via (
aeson
-inspired) typeclass-based API (see Data.YAML).Allows round-tripping while preserving ordering, anchors, and comments at Event-level.
Support for constructing custom YAML node graph representation (including support for cyclic YAML data structures).
Support for the standard (untyped) Failsafe, (strict) JSON, and (flexible) Core "schemas" providing implicit typing rules as defined in the YAML 1.2 specification (including support for user-defined custom schemas; see Data.YAML.Schema).
Support for emitting YAML using Failsafe, (strict) JSON, and (flexible) Core "schemas" (including support for user-defined custom encoding schemas; see Data.YAML.Schema).
Event-based API resembling LibYAML's Event-based API (see Data.YAML.Event).
Low-level API access to lexical token-based scanner (see Data.YAML.Token).
See also the HsYAML-aeson package which allows to decode and encode YAML by leveraging aeson
's FromJSON
and ToJSON
instances.
Flags
Manual Flags
Name | Description | Default |
---|---|---|
exe | Enable | Disabled |
Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info
Downloads
- HsYAML-0.2.1.4.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
Versions [RSS] | 0.1.0.0, 0.1.1.0, 0.1.1.1, 0.1.1.2, 0.1.1.3, 0.1.2.0, 0.2.0.0, 0.2.1.0, 0.2.1.1, 0.2.1.2, 0.2.1.3, 0.2.1.4 |
---|---|
Change log | ChangeLog.md |
Dependencies | base (>=4.9 && <5), bytestring (>=0.9 && <0.13), containers (>=0.4.2 && <0.8), deepseq (>=1.3.0 && <1.6), mtl (>=2.2.1 && <2.4), parsec (>=3.1.13.0 && <3.2), text (>=1.2.3 && <2.2), transformers (>=0.4 && <0.7) [details] |
Tested with | ghc ==9.10.1, ghc ==9.8.2, ghc ==9.6.5, 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-only[multiple license files] |
Copyright | 2015-2018 Herbert Valerio Riedel , 2007-2008 Oren Ben-Kiki |
Author | Herbert Valerio Riedel |
Maintainer | https://github.com/haskell-hvr/HsYAML |
Revised | Revision 1 made by AndreasAbel at 2024-06-25T09:45:27Z |
Category | Text |
Home page | https://github.com/haskell-hvr/HsYAML |
Bug tracker | https://github.com/haskell-hvr/HsYAML/issues |
Source repo | head: git clone https://github.com/haskell-hvr/HsYAML.git |
Uploaded | by AndreasAbel at 2024-04-25T10:29:23Z |
Distributions | Arch:0.2.1.3, Debian:0.2.1.0, Fedora:0.2.1.1, LTSHaskell:0.2.1.4, NixOS:0.2.1.4, Stackage:0.2.1.4, openSUSE:0.2.1.4 |
Reverse Dependencies | 16 direct, 217 indirect [details] |
Executables | yaml-test |
Downloads | 32203 total (266 in the last 30 days) |
Rating | 1.5 (votes: 8) [estimated by Bayesian average] |
Your Rating | |
Status | Docs available [build log] Last success reported on 2024-04-25 [all 1 reports] |