Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | add type substitutions to serde_dhall | stuebinm | 2021-04-10 | 2 | -0/+18 |
| | | | | | | | | | | | | | | | | | | | | | | | | 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 | ||||
* | release: dhall version 0.10.1 | Nadrieril | 2021-04-03 | 1 | -1/+1 |
| | |||||
* | clippy: ignore unknown lints | Nadrieril | 2021-04-03 | 1 | -1/+2 |
| | |||||
* | clippy: ignore upper_case_acronyms | Nadrieril | 2021-04-03 | 1 | -2/+3 |
| | |||||
* | fix: fix formatting | Nadrieril | 2021-04-03 | 1 | -1/+1 |
| | |||||
* | Ignore clippy's needless question mark lint for the ast visitor macros. | Ceri Storey | 2021-04-03 | 1 | -1/+2 |
| | |||||
* | Avoid ambiguity from use of Itertools::intersperse. | Ceri Storey | 2021-04-03 | 2 | -6/+5 |
| | |||||
* | Replace a bunch of Err(…)? and format!("constant") calls. | Ceri Storey | 2021-03-27 | 2 | -2/+2 |
| | |||||
* | chore: fix clippy warnings | Nadrieril | 2021-03-09 | 1 | -0/+1 |
| | |||||
* | release: dhall version 0.10.0 | Nadrieril | 2021-02-04 | 1 | -1/+1 |
| | |||||
* | chore: fix clippy warnings | Nadrieril | 2021-01-22 | 2 | -8/+6 |
| | |||||
* | tweak: factor a bit | Nadrieril | 2020-12-08 | 1 | -24/+25 |
| | |||||
* | fix: fix import ordering issue | Nadrieril | 2020-12-08 | 1 | -7/+7 |
| | |||||
* | Soothe clippy | Nadrieril | 2020-12-07 | 1 | -0/+1 |
| | |||||
* | Resolve imports and alternatives outside of the ast traversal | Nadrieril | 2020-12-07 | 6 | -130/+294 |
| | |||||
* | Defer name errors to typechecking | Nadrieril | 2020-12-07 | 4 | -5/+13 |
| | | | | We aren't supposed to inspect anything before alternatives are chosen | ||||
* | Avoid storing an import before we checked its hash | Nadrieril | 2020-12-07 | 2 | -23/+28 |
| | |||||
* | Unify `skip_resolve_expr` with normal resolution | Nadrieril | 2020-12-07 | 6 | -39/+74 |
| | |||||
* | Pass import results via the global context | Nadrieril | 2020-12-07 | 4 | -13/+19 |
| | |||||
* | Thread cx everywhere else imports are read | Nadrieril | 2020-12-07 | 7 | -69/+68 |
| | |||||
* | Tag cx ids with the cx lifetime | Nadrieril | 2020-12-07 | 3 | -19/+31 |
| | | | | To make sure we don't let ids escape and we don't mix scopes. | ||||
* | Thread cx through normalization | Nadrieril | 2020-12-07 | 15 | -347/+395 |
| | |||||
* | Thread cx through typecheck | Nadrieril | 2020-12-07 | 8 | -28/+65 |
| | |||||
* | Improve ergonomics of `Ctxt` | Nadrieril | 2020-12-07 | 2 | -55/+55 |
| | |||||
* | Make global store of imports and import results | Nadrieril | 2020-12-07 | 4 | -62/+200 |
| | |||||
* | An import location is not independent from the import mode | Nadrieril | 2020-12-06 | 2 | -117/+107 |
| | |||||
* | Prepare `ImportLocation` for more fields | Nadrieril | 2020-12-06 | 2 | -38/+82 |
| | |||||
* | If can return a type | Basile Henry | 2020-11-27 | 1 | -2/+2 |
| | |||||
* | release: dhall version 0.9.0 | Nadrieril | 2020-11-20 | 1 | -1/+1 |
| | |||||
* | Remove NirInternal | Nadrieril | 2020-11-03 | 2 | -50/+23 |
| | |||||
* | Typecheck `with` using mutation | Nadrieril | 2020-11-03 | 3 | -45/+25 |
| | |||||
* | Normalize `with` by mutation. | Nadrieril | 2020-11-03 | 4 | -57/+66 |
| | | | | | This is Cow-style mutation: we clone only what's shared and then mutate it. This it more legible and more efficient than the immutable version. | ||||
* | Try to keep ownership of `Nir`s when convenient | Nadrieril | 2020-11-03 | 2 | -55/+52 |
| | | | | | The goal is that we might avoid cloning internals in the common case where a value is not shared | ||||
* | Merge remote-tracking branch 'upstream/master' into text-replace | Basile Henry | 2020-11-03 | 13 | -736/+328 |
|\ | |||||
| * | Handle record type properly | Basile Henry | 2020-11-02 | 1 | -1/+1 |
| | | |||||
| * | Inline helper function | Basile Henry | 2020-11-02 | 1 | -8/+4 |
| | | |||||
| * | Refactor following PR review | Basile Henry | 2020-11-02 | 2 | -29/+20 |
| | | |||||
| * | Handle partially abstract with | Basile Henry | 2020-11-01 | 1 | -8/+29 |
| | | |||||
| * | Implement normalization for With op | Basile Henry | 2020-11-01 | 1 | -2/+43 |
| | | |||||
| * | Implement type checking for With op | Basile Henry | 2020-11-01 | 2 | -31/+52 |
| | | |||||
| * | fix: clippy | Nadrieril | 2020-11-01 | 2 | -21/+18 |
| | | |||||
| * | feat: add location to import error messages | Nadrieril | 2020-11-01 | 1 | -2/+10 |
| | | | | | | | | This is crude but helpful. See #40 | ||||
| * | Ensure that the hash always gets checked | Nadrieril | 2020-11-01 | 2 | -19/+40 |
| | | |||||
| * | Typed and TypedHir are the same | Nadrieril | 2020-11-01 | 3 | -33/+26 |
| | | |||||
| * | Untangle caching code | Nadrieril | 2020-11-01 | 10 | -661/+155 |
| | | |||||
| * | Store file cache in ImportEnv | Nadrieril | 2020-11-01 | 4 | -21/+22 |
| | | |||||
| * | Untangle ImportEnv::handle_import | Nadrieril | 2020-11-01 | 2 | -29/+37 |
| | | |||||
* | | Allow `Text/replace ` to support an abstract haystack | Basile Henry | 2020-11-01 | 1 | -22/+28 |
|/ | |||||
* | Update annotate-snippets dependency | Nadrieril | 2020-10-30 | 1 | -12/+13 |
| | |||||
* | Roll our own Value for binary decoding | Nadrieril | 2020-10-30 | 1 | -12/+162 |
| |