Before, `dhall-to-json`/`dhall-to-yaml` would use approximate representations for special `Double` values. Specifically, `NaN` would encode as `null` and `±Infinity` would encode as the minimum and maximum `Double` values. After this change, YAML will now use `nan`/`inf`/`-inf` to encode these values (since special `Double` values are natively supported by YAML) and the JSON encoding will reject them by default. The user can restore the old behavior for the JSON encoding by enabling the `--approximate-special-doubles` flag. |
||
---|---|---|
.. | ||
Main.hs |