Commit graph

271 commits

Author SHA1 Message Date
Folkert
97c10e1211 setup for mono reports 2020-04-12 01:56:57 +02:00
Folkert
2811f978a4 make a Index data type 2020-04-11 20:40:25 +02:00
Folkert
ab19529077 record update hints 2020-04-11 14:55:12 +02:00
Folkert
06cd298126 add cycle helper 2020-04-10 23:26:30 +02:00
Folkert
931567ac4d a working state again 2020-04-10 22:07:02 +02:00
Folkert
3187138084 WIP convert all the type_error things 2020-04-10 18:07:16 +02:00
Folkert
1672b89e19 circular types with pretty 2020-04-10 14:48:34 +02:00
Folkert
fcb62cdf8e add titles to errors 2020-04-09 23:58:28 +02:00
Folkert
c2ad8dfe7e use pretty.rs more 2020-04-09 23:27:11 +02:00
Folkert
fd7ca5bcc9 don't add guarded record fields into scope 2020-04-09 01:08:09 +02:00
Folkert
85e2cf4465 add a bunch of hints 2020-04-09 01:08:09 +02:00
Folkert
5e226ee5f4 convert type problems into pretty doc 2020-04-09 01:08:09 +02:00
Folkert
a587e31897 complete pattern_to_doc 2020-04-09 01:08:09 +02:00
Folkert
7e4e3c93d5 cleanup 2020-04-07 21:12:56 +02:00
Folkert
7f999a06f3 add When pattern errors 2020-04-07 18:06:00 +02:00
Folkert
ccd021a755 add FnCall error message 2020-04-07 13:31:48 +02:00
Folkert
02e42b0abc add from annotation cases 2020-04-06 22:59:21 +02:00
Folkert
67f8f2e943 improve tag union errors 2020-04-06 21:40:54 +02:00
Folkert
3f4346f573 stop unification when ext vars don't unify 2020-04-06 21:40:54 +02:00
Folkert
2d6e47b8a6 test for record diff 2020-04-06 21:40:54 +02:00
Folkert
854ffdae5e stylistic improvements 2020-04-06 21:40:54 +02:00
Chad Stearns
a56867ee79 Commented out multiline shadowing test 2020-04-05 21:27:22 -04:00
Chad Stearns
f56a06d53b Fixed shadowing test 2020-04-05 17:52:03 -04:00
Chad Stearns
6e00e6f4a2 Merge branch 'trunk' of github.com:rtfeldman/roc into shadowing-report 2020-04-05 15:57:26 -04:00
Chad Stearns
d8511e3285 Two shadowing report tests 2020-04-05 15:19:43 -04:00
Folkert
9e331f4a60 add commented tests 2020-04-05 00:15:38 +02:00
Folkert
5b0d9e693b record update value 2020-04-05 00:15:38 +02:00
Folkert
f8b3d5dce7 elem_in_list 2020-04-05 00:15:38 +02:00
Folkert
200adae507 when_branch_mismatch 2020-04-05 00:15:38 +02:00
Folkert
98479511f5 when_if_guard 2020-04-05 00:15:38 +02:00
Richard Feldman
d28f8449d0 Report errors in the CLI 2020-04-03 21:58:44 -04:00
Folkert
ba16eff24d use pretty.rs for formatting 2020-04-04 01:41:17 +02:00
Richard Feldman
98f4f46248 Special-case 2-branch if/else errors 2020-04-03 01:51:42 -04:00
Richard Feldman
dc3e2d307c Revise conditional error wording. 2020-04-03 01:05:55 -04:00
Richard Feldman
67b7be9786 Revise error for reporting 2020-04-03 00:48:00 -04:00
Folkert
1981a7e467 refactor and clean up 2020-04-03 01:20:35 +02:00
Folkert
604dbf7215 Merge remote-tracking branch 'origin/trunk' into precedence-error 2020-04-02 23:29:15 +02:00
Folkert
2e822e739f report circular type error 2020-04-02 23:13:35 +02:00
Chad Stearns
30dadd882c Binop precedence problem report test 2020-04-01 22:17:39 -04:00
Folkert
8642cfeae0 report first type error 2020-04-01 23:37:05 +02:00
Folkert
14ad793bd7 hook up TypeError 2020-04-01 16:28:10 +02:00
Folkert
6531845966 fix off-by-one error 2020-04-01 00:06:48 +02:00
Folkert
8e8f93955e cleanup 2020-03-31 23:54:14 +02:00
Folkert
48832ffa84 add error under/side lines 2020-03-31 23:49:26 +02:00
Folkert
2b4b63a8eb add caret underline for sinlg-line regions 2020-03-31 23:28:14 +02:00
Folkert
11c8e2bfaa improve Precedence error message 2020-03-31 23:11:35 +02:00
Richard Feldman
33d5e528a6 Use Interns for module_id in reporting tests 2020-03-30 23:57:57 -04:00
Folkert
4947e2638c remove RuntimeError panics in canonicalization 2020-03-30 15:59:00 +02:00
Folkert
e05bad3c72 remove panic in constrain/src/pattern 2020-03-30 15:09:15 +02:00
Chad Stearns
62c7a7c3e2 Small adjustments to reports 2020-03-29 18:42:35 -04:00