I’ve made a lot of progress on Dhall bindings for Go recently, and I think it’s time to make progress towards a v1.0 release. As a result, I’m releasing the first release candidate today. You can use it by adding this line to your go.mod:
require github.com/philandstuff/dhall-golang v1.0.0-rc.1
The full changelog is here. Note that some things are still in flux and
subject to change:
- The
dhall
package is stable and will not have any breaking
changes. In particular,dhall.Decode
anddhall.Unmarshal
will
not have any breaking changes before a v1.0.0 release. - The
parser
package is also stable and will not have any breaking
changes. - The
core
package is still subject to change: in particular, names
which are currently exported may be unexported before a v1.0.0
release.
Added
- Core Dhall functionality:
- Parse Dhall source to Terms
- Resolve Dhall imports
- Use Dhall cache for imports
- Typecheck Dhall Terms
- Evaluate Dhall Terms to Values
- Marshalling/unmarshalling to CBOR format
- Go bindings:
- dhall.Decode to decode a Dhall Value into a Go variable
- dhall.Unmarshal as a convenience all-in-one
Dhall-source-to-Go-variable function