Skip to content

Dhall for Java 0.6.0-M1

Pre-release
Pre-release
Compare
Choose a tag to compare
@travisbrown travisbrown released this 03 Sep 11:55
· 189 commits to main since this release
v0.6.0-M1
ef562e4

This release updates the Dhall language version from 17.1.0 to 18.0.0.

As part of this update, we've added a With constructor to the abstract syntax tree for Dhall expressions, which allows us to implement the optimization discussed here. For example, the following expression previously took several seconds to parse in previous releases (and had a desugared string representation that was millions of characters long):

{a = {=}}
  with a.b = {=}
  with a.b.c = {=}
  with a.b.c.d = {=}
  with a.b.c.d.e = {=}
  with a.b.c.d.e.f = {=}
  with a.b.c.d.e.f.g = {=}
  with a.b.c.d.e.f.g.h = {=}
  with a.b.c.d.e.f.g.h.i = {=}
  with a.b.c.d.e.f.g.h.i.j = {=}

It now parses, normalizes, etc. instantaneously.

There is one known issue in this release, which was also a known issue in 0.5.0-M1 (see the release notes for details), but it only affects the dhall-imports Scala module, and should not affect most usage.