Open champignoom opened 1 month ago
We use the Haskell yaml
package for parsing YAML; this is based on libyaml
which I think targets an older version of the YAML spec.
HsYAML is an alternative we tried for a while, but it lacks an active maintainer and would not build reliably.
Just to mention a work-around for this kind of issue: quoting the problematic value prevents it from being converted to a boolean. The following should all work:
indenting: [medium,'yes']
indenting:
- medium
- 'yes'
# and in this specific case:
indenting: 'medium,yes'
yes
in the input becomestrue
in the output. According to the latest YAML spec, "yes" is no longer a boolean, and reasonably so.