Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | add type substitutions to serde_dhall | stuebinm | 2021-04-10 | 1 | -0/+13 |
| | | | | | | | | | | | | | | | | | | | | | | | | 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" => static_type]) .parse::<SimpleType>()? ``` 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 | ||||
* | Untangle caching code | Nadrieril | 2020-11-01 | 2 | -4/+3 |
| | |||||
* | Prefer u64/i64 to usize/isize | Nadrieril | 2020-10-28 | 1 | -3/+2 |
| | |||||
* | Make `SimpleValue` deserializable within other types | Nadrieril | 2020-10-27 | 1 | -0/+1 |
| | | | | Fixes https://github.com/Nadrieril/dhall-rust/issues/184 | ||||
* | spec: Enable `with` optimizations | Nadrieril | 2020-09-14 | 1 | -1/+0 |
| | |||||
* | spec: fix precedence of `===` and `with` | Nadrieril | 2020-06-25 | 1 | -0/+6 |
| | |||||
* | Deserialize `Prelude.Map` and `toMap` to a map instead of a list | Nadrieril | 2020-04-10 | 1 | -0/+6 |
| | |||||
* | Move duplicate field checking to parser | Nadrieril | 2020-04-07 | 3 | -286/+2 |
| | |||||
* | Move BinOp and Builtin definitions in the relevant module | Nadrieril | 2020-04-06 | 1 | -68/+1 |
| | |||||
* | Extract operation-related code to a new module | Nadrieril | 2020-04-06 | 1 | -63/+2 |
| | |||||
* | Factor out operations in typecheck | Nadrieril | 2020-04-06 | 1 | -2/+2 |
| | |||||
* | Split off operations from main expr enum | Nadrieril | 2020-04-06 | 2 | -106/+115 |
| | |||||
* | Check code hashes in import | Nadrieril | 2020-04-05 | 1 | -0/+8 |
| | |||||
* | Brutally make all of dhall pub | Nadrieril | 2020-03-31 | 4 | -13/+13 |
| | |||||
* | Rename LitKind to NumKind | Nadrieril | 2020-03-31 | 2 | -4/+4 |
| | |||||
* | Fix indexing for spans that go to the end of the input | Nadrieril | 2020-03-31 | 1 | -5/+7 |
| | |||||
* | Upgrade annotate-snippets version | Nadrieril | 2020-03-31 | 1 | -8/+2 |
| | |||||
* | Remove more unnecessary parens in printer | Nadrieril | 2020-03-20 | 2 | -2/+22 |
| | |||||
* | Remove never_type feature | Nadrieril | 2020-03-17 | 1 | -2/+4 |
| | |||||
* | Run clippy | Nadrieril | 2020-03-17 | 1 | -2/+2 |
| | |||||
* | Implement record puns | Nadrieril | 2020-03-11 | 1 | -0/+1 |
| | |||||
* | Add support for `with` keyword | Nadrieril | 2020-03-10 | 1 | -0/+1 |
| | |||||
* | Implement remote imports and cleanup import chaining | Nadrieril | 2020-03-05 | 1 | -5/+5 |
| | |||||
* | Implement `as Location` imports | Nadrieril | 2020-03-05 | 1 | -29/+0 |
| | |||||
* | Implement some normalization simplifications | Nadrieril | 2020-03-05 | 1 | -1/+1 |
| | |||||
* | Normalization for ProjectionByExpr | Basile Henry | 2020-03-02 | 1 | -1/+1 |
| | |||||
* | Add support for dotted field syntax | Nadrieril | 2020-02-20 | 1 | -1/+2 |
| | |||||
* | Add support for duplicate record fields | Nadrieril | 2020-02-20 | 2 | -1/+5 |
| | |||||
* | Expose fewer pub things | Nadrieril | 2020-02-19 | 3 | -45/+7 |
| | |||||
* | Remove some unused code | Nadrieril | 2020-02-17 | 1 | -24/+0 |
| | |||||
* | Start requiring Universe to build a Type | Nadrieril | 2020-02-16 | 1 | -0/+7 |
| | |||||
* | Introduce LitKind to factor out common enum nodes | Nadrieril | 2020-02-11 | 2 | -12/+15 |
| | |||||
* | Simplify ExprKind visitor | Nadrieril | 2020-02-11 | 2 | -140/+84 |
| | |||||
* | Remove the Embed variant from ExprKind | Nadrieril | 2020-02-11 | 2 | -57/+31 |
| | |||||
* | Resolve by ref instead of by mut | Nadrieril | 2020-02-09 | 2 | -215/+4 |
| | |||||
* | Workaround panic in a serde_dhall example | Nadrieril | 2020-02-04 | 1 | -2/+4 |
| | | | | | Unsure what's causing it, most probably mixing of spans from different inputs | ||||
* | Fix spans for unions and records | Nadrieril | 2020-02-02 | 1 | -0/+6 |
| | |||||
* | Implement once nice error using annotate_snippets | Nadrieril | 2020-02-01 | 1 | -0/+30 |
| | |||||
* | Cleanup variable handling | Nadrieril | 2020-01-29 | 1 | -11/+5 |
| | |||||
* | Finally get rid of all of the shift/subst_shift ! | Nadrieril | 2020-01-29 | 1 | -22/+0 |
| | |||||
* | Remove dead code | Nadrieril | 2020-01-29 | 1 | -4/+0 |
| | |||||
* | Add Expr visitor and improve tyexpr_to_expr | Nadrieril | 2020-01-18 | 2 | -46/+40 |
| | |||||
* | Introduce intermediate representation that stores typed expr | Nadrieril | 2020-01-18 | 1 | -1/+1 |
| | |||||
* | Replace all bulk shifting by a single shift | Nadrieril | 2020-01-17 | 1 | -26/+0 |
| | |||||
* | Implement bulk shifting | Nadrieril | 2020-01-17 | 1 | -4/+29 |
| | |||||
* | Simplify Shift and Subst instances | Nadrieril | 2020-01-17 | 1 | -3/+0 |
| | |||||
* | Remove binder ids | Nadrieril | 2020-01-17 | 1 | -0/+9 |
| | | | | The underlying purpose of them turned out to be unsound | ||||
* | Implement traverse_ref for ValueKind | Nadrieril | 2020-01-17 | 2 | -2/+3 |
| | |||||
* | Deserialize more types | Nadrieril | 2020-01-16 | 1 | -0/+4 |
| | |||||
* | Add two new Integer builtins | Nadrieril | 2019-12-23 | 1 | -0/+2 |
| |