Skip to content

Releases: philandstuff/dhall-golang

6.0.2

09 Oct 11:39
Compare
Choose a tag to compare

What's Changed

  • Simplify example in README: use UnmarshalFile by @Trundle in #58
  • Remove dependence on Prelude/JSON/Type.dhall file by @Gabriel439 in #63

New Contributors

Full Changelog: v6.0.1...v6.0.2

6.0.1

04 Dec 13:57
Compare
Choose a tag to compare

This fixes a showstopper bug in 6.0.0.

Fixed

  • Fix import paths to match new major version (#56)

6.0.0

04 Nov 17:11
3ed0db0
Compare
Choose a tag to compare

This brings dhall-golang up to version 19.0.0 of the Dhall standard.

Added

  • From Dhall 19.0.0: add Text/replace builtin
  • Add dhall-golang json command

The new dhall-golang json command takes some Dhall and outputs it as
JSON, similar to dhall-haskell's dhall json. One key difference is
that it also supports Prelude.JSON types. For example, the following
command:

dhall-golang json <<EOF
let JSON = https://prelude.dhall-lang.org/JSON/package.dhall

in  { x = JSON.natural 4
    , y =
        JSON.array
          [ JSON.string "foo", JSON.natural 4, JSON.null, JSON.bool True ]
    }
EOF

will output:

{
  "x": 4,
  "y": [
    "foo",
    4,
    null,
    true
  ]
}

Changed

  • From Dhall 19.0.0: implement with as first-class expression
  • Allow unmarshalling Dhall values into interface{}; dhall-golang
    will select appropriate Go types for Dhall values when doing this.

5.0.0

20 Sep 12:55
222e8bc
Compare
Choose a tag to compare

This brings dhall-golang up to version 18.0.0 of the Dhall standard.

Changed

  • Language changes
    • Enable with optimizations

This implements the newly-possible with optimizations such that
deeply-nested with expressions do not experience pathological
slowdown.

4.1.0

10 Aug 21:16
Compare
Choose a tag to compare

This brings dhall-golang up to version 17.1.0 of the Dhall standard.

Added

  • Language changes
    • Allow trailing delmiters (such as trailing commas in lists,
      trailing pipes in unions)

Fixed

  • Fix potential panic when typechecking toMap expressions (#49)

4.0.0

16 Jun 20:44
84b867b
Compare
Choose a tag to compare

This brings dhall-golang up to version 17.0.0 of the Dhall standard.
Again the standard had breaking changes, so this release is a major
version bump.

Thanks to @lisael for their contributions to this release.

Breaking changes

Added

Fixed

  • Fix potential stack overflow in typechecker (#40)
    • When typechecking certain pathological expressions, the
      typechecker would get into an infinite loop until it exhausted
      the stack.
  • Fix error messages when x === y fails to typecheck (#39)

3.0.0

12 May 12:46
e5ae7c9
Compare
Choose a tag to compare

This brings dhall-golang up to version 16.0.0 of the Dhall standard.
As the standard had breaking changes, this release is a major version
bump.

Breaking changes

New features

Bug fixes

  • We now save fully-alpha-normalized expressions to the cache (#31)
  • We now check the hash of expressions fetched from the cache (#32)

2.0.0

17 Apr 17:45
c41ecf1
Compare
Choose a tag to compare

This brings dhall-golang up to version 15.0.0 of the Dhall standard.
As the standard had breaking changes, this release is a major version
bump.

Breaking changes

  • added with keyword (technically breaking since you can no longer
    use with as an identifier)

Added

  • added record puns (ie { x } is now shorthand for { x = x })
  • added UnmarshalFile function (#25)

Changed

  • Unmarshal() and Decode() will check a Dhall function matches the
    given Go type before decoding (#23)
  • imports are now evaluated at import time (#27)

Fixed

  • fixed bug in evaluation of merge (3171f34)

1.0.0

15 Mar 13:35
a6ae5c7
Compare
Choose a tag to compare

No changes from 1.0.0-rc.4.

1.0.0-rc.4

06 Mar 14:46
fcf6e0c
Compare
Choose a tag to compare
1.0.0-rc.4 Pre-release
Pre-release

Another release candidate. There was one more breaking change. I don't anticipate any more breaking changes so if there are no reported issues, this will become 1.0.

Breaking changes

  • dhall.Decode() now returns an error instead of panicking (#18)

Changed

  • regenerate parser from mna/pigeon master (#16)
  • support for unmarshalling into pointer types (#17)
  • better encoding of Optional types (#19)