<feed xmlns='http://www.w3.org/2005/Atom'>
<title>dhall_rust/dhall/src/syntax, branch substitutions</title>
<subtitle>working copy forked from https://github.com/Nadrieril/dhall-rust
</subtitle>
<link rel='alternate' type='text/html' href='https://stuebinm.eu/git/dhall_rust/'/>
<entry>
<title>add type substitutions to serde_dhall</title>
<updated>2021-04-10T20:59:07+00:00</updated>
<author>
<name>stuebinm</name>
</author>
<published>2021-04-10T20:59:07+00:00</published>
<link rel='alternate' type='text/html' href='https://stuebinm.eu/git/dhall_rust/commit/?id=2958333c83dce911463734e391fe3ccc76cfc9d5'/>
<id>2958333c83dce911463734e391fe3ccc76cfc9d5</id>
<content type='text'>
this adds subsititutions, which work similar to the
`Dhall.substitutions` mechanism of the Haskell dhall package, and which
can be used e.g. like this:

```rust
serde_dhall.from_str(...)
  .substitute_names(hashmap!["Newtype" =&gt; static_type])
  .parse::&lt;SimpleType&gt;()?
```

The idea behind this is to make it easy to add programmer-defined types
which may be used in configs for programs, without forcing the program's
users to re-import the same type definitions each time (or the
programmers to keep the dhall-based definitions in sync with their rust
types, since these are now generated automatically).

Caveats so far:
 - makes some of the code ugly (dhall internals are now used in
   serde_dhall/src/lib.rs, for example)
 - haven't tested error messages so far
 - some unecessary copying of strings and static type values
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
this adds subsititutions, which work similar to the
`Dhall.substitutions` mechanism of the Haskell dhall package, and which
can be used e.g. like this:

```rust
serde_dhall.from_str(...)
  .substitute_names(hashmap!["Newtype" =&gt; static_type])
  .parse::&lt;SimpleType&gt;()?
```

The idea behind this is to make it easy to add programmer-defined types
which may be used in configs for programs, without forcing the program's
users to re-import the same type definitions each time (or the
programmers to keep the dhall-based definitions in sync with their rust
types, since these are now generated automatically).

Caveats so far:
 - makes some of the code ugly (dhall internals are now used in
   serde_dhall/src/lib.rs, for example)
 - haven't tested error messages so far
 - some unecessary copying of strings and static type values
</pre>
</div>
</content>
</entry>
<entry>
<title>Avoid ambiguity from use of Itertools::intersperse.</title>
<updated>2021-04-03T12:56:49+00:00</updated>
<author>
<name>Ceri Storey</name>
</author>
<published>2021-03-27T10:47:00+00:00</published>
<link rel='alternate' type='text/html' href='https://stuebinm.eu/git/dhall_rust/commit/?id=1cbee42df4868a92de5b18a174592497d451a814'/>
<id>1cbee42df4868a92de5b18a174592497d451a814</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Untangle caching code</title>
<updated>2020-11-01T17:36:49+00:00</updated>
<author>
<name>Nadrieril</name>
</author>
<published>2020-11-01T16:10:00+00:00</published>
<link rel='alternate' type='text/html' href='https://stuebinm.eu/git/dhall_rust/commit/?id=66ea301fc25a07485286560c434a9fdaf460c431'/>
<id>66ea301fc25a07485286560c434a9fdaf460c431</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Roll our own Value for binary decoding</title>
<updated>2020-10-30T20:22:58+00:00</updated>
<author>
<name>Nadrieril</name>
</author>
<published>2020-10-30T20:10:33+00:00</published>
<link rel='alternate' type='text/html' href='https://stuebinm.eu/git/dhall_rust/commit/?id=c3e7b9004d136fd968468abc7559f003a9f7d235'/>
<id>c3e7b9004d136fd968468abc7559f003a9f7d235</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Don't use serde_cbor::Value in binary encoding</title>
<updated>2020-10-30T19:55:40+00:00</updated>
<author>
<name>Nadrieril</name>
</author>
<published>2020-10-30T19:54:39+00:00</published>
<link rel='alternate' type='text/html' href='https://stuebinm.eu/git/dhall_rust/commit/?id=e9c92d6ad3bd9ba9c98fbb92a19e8afcbfc1c8f5'/>
<id>e9c92d6ad3bd9ba9c98fbb92a19e8afcbfc1c8f5</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>No need to escape underscores in pretty-printing</title>
<updated>2020-10-28T22:52:41+00:00</updated>
<author>
<name>Nadrieril</name>
</author>
<published>2020-10-28T20:25:06+00:00</published>
<link rel='alternate' type='text/html' href='https://stuebinm.eu/git/dhall_rust/commit/?id=5f3ca811f09dcf6f09fb9b60fcd2664d06762f39'/>
<id>5f3ca811f09dcf6f09fb9b60fcd2664d06762f39</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Prefer u64/i64 to usize/isize</title>
<updated>2020-10-28T20:18:17+00:00</updated>
<author>
<name>Nadrieril</name>
</author>
<published>2020-05-10T18:32:34+00:00</published>
<link rel='alternate' type='text/html' href='https://stuebinm.eu/git/dhall_rust/commit/?id=9e3f68fc54babf24133cf66ae6be7d069ba2c271'/>
<id>9e3f68fc54babf24133cf66ae6be7d069ba2c271</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Make `SimpleValue` deserializable within other types</title>
<updated>2020-10-27T23:33:26+00:00</updated>
<author>
<name>Nadrieril</name>
</author>
<published>2020-10-27T23:33:26+00:00</published>
<link rel='alternate' type='text/html' href='https://stuebinm.eu/git/dhall_rust/commit/?id=77258af83dfe93293ad854ccb401d1ce7453edfc'/>
<id>77258af83dfe93293ad854ccb401d1ce7453edfc</id>
<content type='text'>
Fixes https://github.com/Nadrieril/dhall-rust/issues/184
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fixes https://github.com/Nadrieril/dhall-rust/issues/184
</pre>
</div>
</content>
</entry>
<entry>
<title>Implement Text/replace</title>
<updated>2020-10-25T15:50:02+00:00</updated>
<author>
<name>Basile Henry</name>
</author>
<published>2020-10-16T22:40:25+00:00</published>
<link rel='alternate' type='text/html' href='https://stuebinm.eu/git/dhall_rust/commit/?id=1872d6ba12de0e73ef321e026f594d1780e3e084'/>
<id>1872d6ba12de0e73ef321e026f594d1780e3e084</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>spec: Enable `with` optimizations</title>
<updated>2020-09-14T22:19:49+00:00</updated>
<author>
<name>Nadrieril</name>
</author>
<published>2020-09-14T22:09:22+00:00</published>
<link rel='alternate' type='text/html' href='https://stuebinm.eu/git/dhall_rust/commit/?id=7e523ae1903ae2d8bca8b3a8352167d7bac5b2b5'/>
<id>7e523ae1903ae2d8bca8b3a8352167d7bac5b2b5</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
