Commit Graph

13059 Commits

Author SHA1 Message Date
Richard Feldman
ef28dbad84
Drop unnecessary extern declaration 2022-02-27 21:08:08 -05:00
Richard Feldman
696ec3c83e
zig fmt 2022-02-27 21:07:36 -05:00
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
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
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
Brian Carroll
16ba9f2d57 Inline repl_test/test_wasm.sh into Earthfile for better reporting 2022-02-27 11:29:37 +00: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
Brian Carroll
c6a9b900ca Merge branch 'trunk' of github.com:rtfeldman/roc into wasm-repl-fixes 2022-02-26 22:14:13 +00: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
Richard Feldman
4925d3de6d
Merge pull request #2595 from rtfeldman/various-repl-and-type-fixes
Couple of repl bug fixes
2022-02-26 16:29:24 -05:00
Brian Carroll
fcf0e0b987 Earthfile: move ssl install before wasm-pack 2022-02-26 21:00:20 +00:00
ayazhafiz
a6419ccd59 Remove unnecessary debug assert 2022-02-26 15:57:57 -05:00
ayazhafiz
6e555e428d Use correct layouts when rendering records
Closes #2588
2022-02-26 15:53:16 -05:00
ayazhafiz
4742847ba9 Wrap content that is unwrapped and passes through a type alias correctly
Closes #2592
2022-02-26 15:08:27 -05:00
Brian Carroll
09b3ef90c4 Earthfile: install dependencies for Wasm REPL tests 2022-02-26 14:34:58 +00:00
Brian Carroll
cb1bbec5de Changes from PR self-review 2022-02-26 14:32:37 +00:00
Brian Carroll
85ade20b80 Formatting 2022-02-26 13:45:35 +00:00
Brian Carroll
b6fc8dea91 repl_test: reorganise modules 2022-02-26 13:27:08 +00:00
Brian Carroll
97fe32a018 repl_test: add REPL wasmer tests to CI 2022-02-26 13:13:57 +00:00
Brian Carroll
8a45311693 Tweak repl_www build script to use set -u 2022-02-26 13:13:57 +00:00
Brian Carroll
09c3f1591b repl_www: add instructions to README 2022-02-26 13:13:57 +00:00
Brian Carroll
713241670a repl_wasm: Fix bugs in wrapper function generation 2022-02-26 13:13:57 +00:00