Commit Graph

143 Commits

Author SHA1 Message Date
Folkert
331a8ed5eb error message for record update and missing module 2020-07-14 23:37:19 +02:00
Folkert
362ff74b82 clean up annotation canonicalization 2020-07-12 00:36:11 +02:00
Richard Feldman
0536d9f0c4 Share more variables between builtins 2020-07-10 00:06:45 -04:00
Folkert
732496231c expand some comments 2020-07-08 14:30:48 +02:00
Richard Feldman
7938a31ce3 Re-add List.reverse (missed in merge) 2020-07-07 22:29:18 -04:00
Richard Feldman
2337d6638e Temporarily disable can_inline 2020-07-07 21:11:56 -04:00
Richard Feldman
1cd49689c2 Merge remote-tracking branch 'origin/trunk' into low-level-ops 2020-07-07 21:09:50 -04:00
Richard Feldman
e78064c037
Merge branch 'trunk' into number-error-reporting 2020-07-07 18:48:39 -04:00
Folkert
4aa66b2585 update comment 2020-07-07 22:56:46 +02:00
Folkert
edb79b8fce pretty error messages for floats 2020-07-07 22:53:54 +02:00
Folkert
9d67b11c0d pretty error messages for integers 2020-07-07 22:10:23 +02:00
Folkert
308a24b080 Revert "accept a newline and body when patterns are different"
This reverts commit a0d39ff10f.
2020-07-07 20:17:59 +02:00
Folkert
58dfeba043 accept a newline and body when patterns are different 2020-07-07 17:26:45 +02:00
Folkert
e595c14fae wip 2020-07-06 20:38:10 +02:00
Folkert
a0d39ff10f accept a newline and body when patterns are different 2020-07-05 18:34:28 +02:00
Folkert
b7d689226c cover all parsed patterns with an error message
but, some invalid patterns are not parsed as expected. See https://github.com/rtfeldman/roc/issues/399
2020-07-04 20:39:49 +02:00
Folkert
0c7a4179aa report malformed int and float patterns 2020-07-04 20:29:37 +02:00
Richard Feldman
8665f23a29 Inline LetRec and LetNonRec 2020-07-04 10:57:20 -04:00
Richard Feldman
319da4141e Fix some inlining logic 2020-07-04 10:35:37 -04:00
Richard Feldman
426531cf59 Add a TODO to can_inline 2020-07-04 10:23:14 -04:00
Richard Feldman
1926adb543 Fix inlining and test 2020-07-04 10:23:01 -04:00
Richard Feldman
3e5627689f Add basic inline function and a failing test 2020-07-04 10:22:55 -04:00
Richard Feldman
6a38e8b2de Merge remote-tracking branch 'origin/trunk' into inline-builtins 2020-07-03 23:38:15 -04:00
Richard Feldman
fe63ad394e Add a TODO to can_inline 2020-07-03 23:22:39 -04:00
Richard Feldman
053db8449a Fix inlining and test 2020-07-03 23:16:32 -04:00
Richard Feldman
a1870457bf Add basic inline function and a failing test 2020-07-03 21:36:51 -04:00
Folkert
98ac988e99 use symbols instead of identifiers; prevents cloning 2020-07-03 19:23:58 +02:00
Folkert
667233a00d report error for invalid alias argument patterns 2020-07-03 16:54:28 +02:00
Folkert
0cfb16c7d5 implement canonicalization error when signature pattern does not match definition pattern. 2020-07-02 23:24:10 +02:00
Richard Feldman
d744567f76 Add can builtins for List.push and List.repeat 2020-06-29 22:25:58 -04:00
Richard Feldman
8c96d12661 Merge trunk 2020-06-29 22:10:46 -04:00
Richard Feldman
81db9de8b5
Merge branch 'trunk' into container-rule-patterns 2020-06-28 16:21:34 -04:00
Richard Feldman
17dabdc8b7 Clippy 2020-06-28 15:39:13 -04:00
Richard Feldman
85f69b5927 Allow self-qualified lookups in modules 2020-06-28 15:37:44 -04:00
Richard Feldman
714a81f40a Check denominator, not numerator 2020-06-25 22:02:11 -04:00
Richard Feldman
44477f98e9 Fix Num.sqrt, div, mod, and rem 2020-06-25 21:47:02 -04:00
Richard Feldman
ee52d52047 Fix List.get types 2020-06-25 21:22:32 -04:00
Folkert
e5997c4047 fix mutual recursive types
I'll write a bit more about this in the PR message
2020-06-26 01:03:55 +02:00
Richard Feldman
0f36255f83 Fix List.first types 2020-06-24 23:08:25 -04:00
Richard Feldman
35446348a3 Fix some vars 2020-06-23 23:50:20 -04:00
Richard Feldman
14c31d55ee Fix List.set monomorphization 2020-06-23 23:42:12 -04:00
Richard Feldman
750523ba5c Fix List.single 2020-06-23 19:34:09 -04:00
Richard Feldman
30a95e90d1 Fix Num.toFloat 2020-06-23 19:31:50 -04:00
Richard Feldman
dd8dff0f9e Fix some unary ops 2020-06-23 19:17:39 -04:00
Richard Feldman
3309270747 Fix trig ops 2020-06-23 18:21:07 -04:00
Richard Feldman
1c98248b91 Ops for sqrt and round 2020-06-23 18:05:30 -04:00
Richard Feldman
88990c8711 Move Int and Float modules into Num 2020-06-22 23:25:38 -04:00
Richard Feldman
32b9b1ea60 Remove FLOAT_ADD and similar 2020-06-21 15:35:38 -04:00
Richard Feldman
187f3f8dc5 Move some Num operations into LowLevel 2020-06-21 15:07:32 -04:00
Richard Feldman
461e166254 wip 2020-06-20 13:59:04 -04:00