Link [ pkgsrc | NetBSD | pkgsrc git mirror | PR fulltext-search | netbsd commit viewer ]


   
        usage: [branch:branch] [user:user] [path[@revision]] keyword [... [-excludekeyword [...]]] (e.g. branch:MAIN pkgtools/pkg)




switch to index mode

recent branches: MAIN (40m)  pkgsrc-2024Q1 (9d)  pkgsrc-2023Q4 (56d)  pkgsrc-2023Q2 (88d)  pkgsrc-2023Q3 (168d) 

2024-05-27 05:48:53 UTC Now

2022-02-16 10:21:09 UTC MAIN commitmail json YAML

textproc/hs-HsYAML-aeson: import hs-HsYAML-aeson-0.2.0.1

The YAML 1.2 format provides a much richer data-model and feature-set than
the JavaScript Object Notation (JSON) format. However, sometimes it's
desirable to ignore the extra capabilities and treat YAML as if it was
merely a more convenient markup format for humans to write JSON data. To
this end this module provides a compatibility layer atop HsYAML which
allows decoding YAML documents in the more limited JSON data-model while
also providing convenience by reusing aeson's FromJSON instances for
decoding the YAML data into native Haskell data types.

(pho)