0.2.0 4 months ago

Update to dhall-lang 0.7.0, add Dhall::Coder, etc

Breaking Changes

* Version of dhall-lang supported: 0.7.0
* Parse environment variable import contents as expressions, not just
paths (was a bug)
* Dhall.load defaults to a 10 second timeout and max import depth of 50
* Dhall.load and imports now treat the value as UTF-8 source text if the
bytes are valid UTF-8 and there are no control characters
* Standard resolver now refuses to import binary expressions by default
* Standard resolver now uses the standard disk cache by default
* Builtin types are now Dhall::Builtins[:Bool] etc
* String#as_dhall now encodes to List Natural if it is a binary string
* Symbol#as_dhall now encodes as < symbol > instead of < Symbol = {=} >
* OpenStruct#as_dhall no longer includes type annotations for all
elements
* Object#as_dhall now uses #encode_with if present

New Features

* Dhall::Builtins[:Name_of_builtin] to get any builtin (type or
function)
* yaml-to-dhall can translate Symbol
* Dhall.load now calls to_s on its argument (should allow passing a
Pathname, for example)
* Resolver readers and caches can return Expression instances directly
instead of bytes to parse
* Dhall::Coder (see README)
* Dhall.load takes an optional timeout parameter
* Resolvers now take optional max_depth and cache parameters
-----BEGIN PGP SIGNATURE-----

iQIzBAABCAAdFiEEWeaCw+rzmiEMpzU00RwpEc5RnN4FAlzGTRAACgkQ0RwpEc5R
nN4fdBAAtsa0qRA2J8ZxBCZB28oKnr58+meXTGhd74bsrzvebNSFZrPBPcWA8hUR
aTLZ4JbHND0sPeUXwTmU1x28G22fMxECphrjSn3pnop5TbB4LA5tGeMC5cAgu3cg
FFhKoZ5g+SDFP9YVsEpkrydxPKLwv68xsJ3IsE2LR9I5ZAXdDPvKJa8YSfG+Qxip
BdmSTj7lBF9706BJatsP4VZ0Mo2XrDBqDjE5gYSnvppT+bfHZ8Sks66cWwBNdNXR
NwCAnAmFLFLU4+tbvdPKYT2iAguovNZ7NwBklvKoTatDsnsIuT5eV/YPBJ9BS/et
KPOC5LSxWZsUg5Lbspu7EOZ0HmI5g6MQ0FyNDv66JprPPWmaEvpLz+5oIhzSYRTe
TqKTcppDp8QybtzVrF/X/MOPQhPtTtJl0BTNNpPjeuY6cJSy9FGMfEXqnOWWkdkQ
AbhFVz6IOQTBYKTlG6bwtoP+5pGJKcDR1gKrsN4ckITADL9H2KHu51vRFZVFmibv
z6El3pXsZ6OqKuaFaHpYotGkGG6DA/5b9C9WsJucKsfKVpAEjzm3nas1vHV05EwX
Bfaepwa+EntH3OC3GCgrwSLleQGPg6NQQlxf/Zn/cfRxTV2VrRC5+XwdORDSSlUT
aYLdeDn7pCbr2MvBQ64H1MCQ/r+P9GWJj0x/iKg93qU6MdvKS64=
=ltxZ
-----END PGP SIGNATURE-----