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

Moduleaeson-yaml-1.1.0.1Haskell2010

Data.Aeson.Yaml

This library exposes functions for encoding any Aeson value as YAML. There is also support for encoding multiple values into YAML "documents".

This library is pure Haskell, and does not depend on C FFI with libyaml. It is also licensed under the BSD3 license.

This module is meant to be imported qualified.

  • 4 values
valueencodeDocuments :: ToJSON a => [a] -> ByteString
#

Encode multiple values prefixed by ---n. To encode values of different types, import Data.Aeson(ToJSON(toJSON)) and do encodeDocuments [toJSON x, toJSON y, toJSON z].