[ANN] ppx_deriving_yaml 0.1.0

A new 0.2.0 version has just been released. Thanks to all the contributors (including Outreachy applicants!), there’s a lot of nice additions including:

  • to_yaml and of_yaml attributes allowing you to add custom encoders and decoders
  • a skip_unknown flag for ignoring yaml keys so you can partially decode yaml values
  • a default attribute
  • [@@deriving yaml] is now an alias to [@@deriving to_yaml] and [@@ deriving of_yaml] so you can get decoders, encoders or both.

See the documentation in the README: GitHub - patricoferris/ppx_deriving_yaml: OCaml types to Yaml types and back again

3 Likes