Open jonathn opened 3 years ago
Thanks for the report! I think all of these issues stem from the YAML renderer used in dhall-to-yaml
, which is aeson-yaml
. Could you pass this on?
As a workaround, you could try using an alternative Dhall to YAML converter, dhall-to-yaml-ng
from the dhall-yaml
package, that might handle these cases better.
I have a pull request up to fix aeson-yaml
here: https://github.com/clovyr/aeson-yaml/pull/9
Edit: moved the comment to https://github.com/clovyr/aeson-yaml/issues/12
https://github.com/clovyr/aeson-yaml seems to be unmaintained and dhall-json
still produces broken YAML.
Since dhall-yaml
seems to do a better job anyway, should dhall-json
just drop support for YAML?
A question: is there a complete specification for what dhall-yaml must do, and tests checking that dhall-to-yaml
agrees with that specification?
:
(breaks some yaml parsers).e
.I don't think the
--quoted
option should be required to avoid the weirdness.