Richard Feldman
0bdc7f2f74
Fix CLI underline character on Windows
2020-09-03 20:24:09 -04:00
Richard Feldman
c611f1dfe8
Tweak some error message reports
2020-08-31 20:37:37 -04:00
Richard Feldman
e6cbfb1567
Change "Hint" to "Tip"
2020-08-31 17:30:34 -04:00
Folkert
331a8ed5eb
error message for record update and missing module
2020-07-14 23:37:19 +02:00
Richard Feldman
101dc80ae5
Move parse::operator into module::operator
2020-05-01 21:58:53 -04:00
Folkert
719ef5b70e
parse error infrastructure
2020-04-15 21:10:42 +02:00
Folkert
c42b5a1e5b
improved phantom type message
2020-04-14 21:27:29 +02:00
Folkert
7e4a1ef4bd
better message for duplicate fields/tags
2020-04-14 21:18:37 +02:00
Folkert
18c6c37c04
fix self-recursive alias case
2020-04-14 01:33:16 +02:00
Folkert
f6af66f342
record, tag, alias errors
...
- duplicate fields and tags are reported
- circular aliases are reported
2020-04-13 20:53:16 +02:00
Folkert
c69b0d69e5
fix enum and bool pattern match suggestions
2020-04-12 21:47:15 +02:00
Folkert
7632a4b484
highlight code snippets better
2020-04-12 20:59:16 +02:00
Folkert
c326b09964
errors for patterns
2020-04-12 16:39:54 +02:00
Folkert
97c10e1211
setup for mono reports
2020-04-12 01:56:57 +02:00
Folkert
d15bd07bf4
de-alias when diffing with a non-alias
...
When one of the types in a comparison is an alias, elm does not de-alias it.
That is really annoying if e.g. the alias is of a record and you used an invalid field: the field suggestion error does not kick in
2020-04-11 23:57:00 +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
7f999a06f3
add When pattern errors
2020-04-07 18:06:00 +02:00
Folkert
7818e84316
convert ErrorType to ReportText
2020-04-06 21:40:54 +02:00
Folkert
854ffdae5e
stylistic improvements
2020-04-06 21:40:54 +02: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
89c949a9fd
Clean up
2020-04-05 15:20:01 -04:00
Chad Stearns
d8511e3285
Two shadowing report tests
2020-04-05 15:19:43 -04:00
Folkert
5b0d9e693b
record update value
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
05db8c0a48
cleanup
2020-04-04 01:58:59 +02:00
Folkert
51a3c72424
don't run pretty.rs tests
2020-04-04 01:50:19 +02:00
Folkert
ba16eff24d
use pretty.rs for formatting
2020-04-04 01:41:17 +02:00
Folkert
a2a79925b3
complete add_category
2020-04-03 16:10:41 +02:00
Richard Feldman
98f4f46248
Special-case 2-branch if/else errors
2020-04-03 01:51:42 -04:00
Richard Feldman
930f83a283
fixup! Add ReportText::Code
2020-04-03 00:47:44 -04:00
Richard Feldman
3313ad05fa
Simplify some report helpers
2020-04-03 00:47:21 -04:00
Richard Feldman
bb2ececda4
Add ReportText::Code
2020-04-03 00:46:45 -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
106a3646bf
add category to Eq constraint
2020-04-01 20:09:10 +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