Open thomasjm opened 5 years ago
PR welcome, but I don't have any plans on adding that myself for now.
Just thinking out loud. I guess the two biggest issues would be
#
or $
are always invalid JSON in that context, and therefore function unambiguously. In YAML, there's isn't a reliable choice of characters that would violate the syntax: in particular, the #
in an unquoted scalar introduces a comment, and the $
can just occur normally in a mapping key.It seems like an external library would be better suited to implement this functionality.
It would be really handy if you could interpolate values in the
yamlQQ
quasiquoter using#{...}
notation, just like how aeson-qq provides this for JSON.