hafiz
d334ea301d
Merge pull request #2600 from rtfeldman/solve-worklist
...
Transition `solve` to use a worklist rather than always recursing
2022-02-27 17:36:25 -05:00
Joshua Warner
3db961106e
Remove now failing tests
2022-02-27 14:16:06 -08:00
Folkert
81e45b1e2f
make List.set use List.replace under the hood
2022-02-27 22:47:26 +01:00
Folkert
78fe734113
change the return type of List.replace
2022-02-27 22:47:08 +01:00
ayazhafiz
01da425851
Simplify solve worklist substantially
2022-02-27 16:41:31 -05:00
Richard Feldman
44e14e2bc2
Merge pull request #2599 from rtfeldman/str-parse-updates
...
Revise `Str` parsing primitives
2022-02-27 16:39:20 -05:00
Folkert
db1669154e
WIP
2022-02-27 21:53:56 +01:00
ayazhafiz
69953c74ad
Fix missing test annotation
2022-02-27 15:51:27 -05:00
ayazhafiz
56d4dc3480
Transition solve
to use a worklist rather than always recursing
...
This should unblock some of @folkertdev's work on transitioning builtins
to pure Roc code. It's not perfect yet (we still make some recursions),
but it's a step, and it should avoid recursing on `Let`
`ret_constraint`s, which caused stack overflows when they became really
long before.
2022-02-27 15:51:19 -05:00
Richard Feldman
84ada96b63
Revise Str parsing primitives
2022-02-27 15:30:27 -05:00
Brian Carroll
dcf3c052af
Merge pull request #2594 from rtfeldman/wasm-repl-fixes
...
Wasm REPL bug fixes
2022-02-27 18:40:47 +00:00
hafiz
66278515d6
Merge pull request #2560 from rtfeldman/opaque-solve
...
Type inference and repl for opaque types
2022-02-27 13:22:32 -05:00
Brian Carroll
1c25ab515d
repl_test: skip wasm validation for the compiler
2022-02-27 17:39:29 +00:00
ayazhafiz
cf628ed4ef
Fix clippy warning
2022-02-27 12:21:20 -05:00
Brian Carroll
86aec0dbe2
Earthfile: move wasm REPL test command back to the script
2022-02-27 17:03:39 +00:00
ayazhafiz
39b0857049
Merge branch 'opaque-solve' of https://github.com/rtfeldman/roc into opaque-solve
2022-02-27 12:02:05 -05:00
ayazhafiz
720b7b49d2
Improve error pattern and fix tests
2022-02-27 12:01:12 -05:00
Folkert
fb717b4f55
fix merge conflict
2022-02-27 14:08:47 +01:00
Brian Carroll
07748b2b86
builtins: change mv
to cp
to prevent wasm build from crashing
2022-02-27 12:40:04 +00:00
Brian Carroll
8290fbfb1b
Earthfile: override RUSTFLAGS when building wasm target
2022-02-27 12:33:32 +00:00
Folkert
5c31234b24
stack overflow in Num type inference
2022-02-27 13:07:45 +01:00
Folkert
0107d78ea0
most of Num
2022-02-27 13:03:47 +01:00
Brian Carroll
16ba9f2d57
Inline repl_test/test_wasm.sh into Earthfile for better reporting
2022-02-27 11:29:37 +00:00
Brendan Hansknecht
4d42d81c63
add broken attempt to get list.set to use list.replace under the hood
2022-02-27 01:21:02 -08:00
Brendan Hansknecht
d9e9c28889
add error test case
2022-02-27 00:45:51 -08:00
Brendan Hansknecht
b802d681a3
Merge remote-tracking branch 'origin/trunk' into list-replace
2022-02-27 00:28:08 -08:00
Brendan Hansknecht
7a608524ec
Merge remote-tracking branch 'origin/trunk' into gen-dev/quicksort2
2022-02-27 00:26:04 -08:00
ayazhafiz
75cef24ee0
Fix repl compile after rebase
2022-02-27 00:14:05 -05:00
ayazhafiz
a7825c34f5
fixup! Exhaustiveness checking opaque patterns
2022-02-27 00:13:27 -05:00
ayazhafiz
34900c1f55
Address @rtfeldman review
2022-02-27 00:11:11 -05:00
ayazhafiz
07b1829732
Improve error reporting for patterns not matching opaques
2022-02-27 00:11:11 -05:00
ayazhafiz
4e27cdd21d
Compile opaque patterns all the way, and add repl test
2022-02-27 00:11:10 -05:00
ayazhafiz
68d28349ed
Exhaustiveness checking opaque patterns
2022-02-27 00:10:12 -05:00
ayazhafiz
9d87c605fe
Couple of opaque repl tests
2022-02-27 00:10:12 -05:00
ayazhafiz
736645cd8c
Remove some dead code
2022-02-27 00:10:12 -05:00
ayazhafiz
059c324268
Error reporting for type mismatches involving opaques
2022-02-27 00:10:12 -05:00
ayazhafiz
822e38d026
Fix opaque reporting tests
2022-02-27 00:10:12 -05:00
ayazhafiz
ccd4963e0f
Fix clippy warnings
2022-02-27 00:10:12 -05:00
ayazhafiz
b6d7229525
Infer + checking tests for opaques
2022-02-27 00:10:12 -05:00
ayazhafiz
86aa0df661
Add constraint generation for opaque types
2022-02-27 00:10:11 -05:00
Richard Feldman
d3acf34415
Merge pull request #1591 from rtfeldman/single-quote-literal
...
Single Quote literal
2022-02-26 23:27:46 -05:00
Richard Feldman
a164835342
Use std::iter::once over vec!
2022-02-26 21:00:18 -05:00
Brian Carroll
cae455b2bb
Try to get wasm-pack install to find openssl
2022-02-26 22:45:45 +00:00
Joshua Warner
611d1784a9
Add tests
2022-02-26 14:15:46 -08:00
Brian Carroll
c6a9b900ca
Merge branch 'trunk' of github.com:rtfeldman/roc into wasm-repl-fixes
2022-02-26 22:14:13 +00:00
Folkert
65b1b3fcce
just before Num
2022-02-26 23:11:40 +01:00
hafiz
1aec997843
Merge pull request #2574 from rtfeldman/fix-panic-on-unimported-module
...
[Bug] Handle unimported modules properly
2022-02-26 16:39:22 -05:00
Joshua Warner
ab563fc9a5
Remove dead code
2022-02-26 13:34:53 -08:00
Joshua Warner
b2bb9dcd65
improve parser snapshot test error messages
2022-02-26 13:34:53 -08:00
Joshua Warner
333234aad9
Improve error message for no_extra_snapshot_test_files test
2022-02-26 13:32:20 -08:00