Use miette for reporting errors

This gives us errors with annotated context like this:

```
Error:
  × type error: Unknown variable 'x'
    ╭─[isle_examples/let.isle:24:1]
 24 │   (Lower (B.B z))
 25 │   (A.Add x y))
    ·          ┬
    ·          ╰── Unknown variable 'x'
    ╰────
```
This commit is contained in:
Nick Fitzgerald
2021-09-28 14:51:02 -07:00
committed by Chris Fallin
parent 38da2cee3e
commit 6ffb02d9f6
10 changed files with 415 additions and 68 deletions

View File

@@ -7,4 +7,5 @@ license = "Apache-2.0 WITH LLVM-exception"
[dependencies]
log = "0.4"
miette = "3.0.0"
thiserror = "1.0.29"