- Support aeson-2.0 (thanks to Simon Jakobi)
- Every change to the YAML output format will now result in a bump of B in A.B.C.D to more closely follow the Haskell PVP. B will be bumped in case of small changes and bug fixes, and A if a change is expected to cause problems with common YAML 1.1 or 1.2 decoders.
encodeDocuments
andencodeQuotedDocuments
now output a leading---
-
Don't quote simple strings containing spaces, e.g: hello world
-
Single-quote dates (like '2020-02-27') and bools ('true' / 'false')
- Encode empty objects as "{}" rather than ""
- Quote date strings (e.g. "2038-01-19")
- Encode empty lists as "[]" rather than "\n -"
- Only quote YAML 1.2 boolean strings "true" and "false" (upper or
lowercase), not "on", "off", "yes", "y", "no", "n" (if you want to quote
these strings, use
encodeQuoted
).
encodeQuoted
: Encodes with all keys/strings quotedencodeQuotedDocuments
: Encodes documents with all keys/strings quoted
-
Simple strings (scalars) are now written unquoted.
-
Multi-line strings (with trailing newlines) are now written as literal block scalars.
Initial version