HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Package0.2.1.4Text

HsYAML

Pure Haskell YAML 1.2 processor

Modules

4 modules
  • Data.YAML51Document oriented YAML parsing API inspired by aeson.
  • Data.YAML.Event18Event-stream oriented YAML parsing and serializing API
  • Data.YAML.Schema14Predefined YAML 1.2 Schema resolvers and encoders as well as support for defining custom resolvers and encoders.
  • Data.YAML.Token4Tokenizer for the YAML 1.2 syntax as defined in http://yaml.org/spec/1.2/spec.html.

Description

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.

Depends on

8 packages

Used by in this set · 0

Nothing in this set depends on it.