Commit Graph

462 Commits

Author SHA1 Message Date
Folkert
589b579689 refactor 2021-03-23 14:31:35 +01:00
Folkert
55cb780249 don't clone Layout 2021-03-22 14:08:48 +01:00
Folkert
ce98da9d04 remove Nested from Def 2021-03-21 21:14:32 +01:00
Folkert
d2600b47a0 better parse error reporting in test_load 2021-03-17 17:26:15 +01:00
Chadtech
b22672fb0e Changed singleton to single 2021-03-14 21:57:10 -04:00
Folkert
4e4854ceaa remove unneeded argument 2021-03-12 02:48:07 +01:00
Folkert
91271d0308 don't leak implementation details 2021-03-09 23:20:31 +01:00
Folkert
65cee39041 remove attempting argument from parser state 2021-03-08 16:33:45 +01:00
Folkert
24fcafa1c4 re-use header parser state when parsing the rest of the file 2021-03-02 22:51:51 +01:00
Folkert
ac91db41b7 use ? operator more 2021-03-02 16:48:12 +01:00
Folkert
27130c3172 report errors in the header with correct source 2021-03-02 16:42:26 +01:00
Folkert de Vries
869d3d18d0
Merge branch 'trunk' into bytes 2021-02-26 12:14:52 +01:00
Folkert
e16f6f8c49 fix compile errors 2021-02-24 23:36:42 +01:00
Folkert
da089af4b9 Merge remote-tracking branch 'origin/trunk' into cli-run-non-app 2021-02-24 23:25:26 +01:00
Folkert
6bd10ddc05 use imported module thunks for pointer calling 2021-02-24 16:23:35 +01:00
Folkert
64955f23ff store module thunks 2021-02-24 16:07:39 +01:00
Folkert
092db87474 add import dependencies to module cache 2021-02-24 16:05:44 +01:00
Richard Feldman
e056b02c0b
Merge branch 'trunk' into ci_ssl_fix 2021-02-20 23:34:23 -05:00
Folkert
362a1fa018 clippy 2021-02-21 00:16:38 +01:00
Folkert
cbdf4c71ed Merge branch 'ci_ssl_fix' into cli-run-non-app 2021-02-21 00:14:45 +01:00
Folkert
7f14f27ee4 better formatting 2021-02-21 00:14:15 +01:00
Folkert
daf6de950e crude prototype 2021-02-20 22:56:01 +01:00
Folkert
df206edd88 clippy 2021-02-20 22:48:44 +01:00
Folkert
232c8652d5 clippy 2021-02-20 22:28:01 +01:00
Folkert
a87bf0a302 clippy 2021-02-20 22:16:42 +01:00
Richard Feldman
e367ca8a88
Merge branch 'trunk' into specialize-owned 2021-02-18 22:58:55 -05:00
Folkert
0cdea4e36a remove passed_by_pointer infrastructure 2021-02-18 19:48:36 +01:00
Richard Feldman
fe98229aa3
Merge branch 'trunk' into dict-more 2021-02-17 23:47:13 -05:00
Folkert
e4f0dc8897 crude prototype 2021-02-16 14:42:16 +01:00
Folkert
0fc66aa61d fix tests 2021-02-16 01:06:24 +01:00
Folkert
0ed87828e5 Merge remote-tracking branch 'origin/trunk' into dict 2021-02-10 15:02:53 +01:00
Folkert
0ad975113c fix Bag import in tests 2021-02-08 23:40:50 +01:00
Folkert
ca04411523 fix tests/more uniq removal 2021-02-07 22:50:33 +01:00
Folkert
38b21c3474 add lifetime to SyntaxError 2021-02-07 22:26:55 +01:00
Folkert
148fffe969 parameterize Parser on an Error type 2021-02-07 22:08:28 +01:00
Chadtech
97f6f95a76 Added too many arguments exception to some functions in file.rs for clippy 2021-02-04 01:27:59 -05:00
Chadtech
a1add5c1b3 Fix argument parity issues for some functions 2021-02-04 01:04:08 -05:00
Folkert
db7e604643 clippy 2021-02-03 22:47:28 +01:00
Folkert
8c6a9c4144 working state 2021-02-03 22:32:27 +01:00
Folkert
d211ca7e61 WIP 2021-02-03 20:21:12 +01:00
Folkert
5ce8e3a9d6 make tests compile 2021-02-02 22:09:29 +01:00
Folkert
f6aa77e6a8 fix all gen and cli tests 2021-02-02 22:06:11 +01:00
Folkert
e643d1ea3c more backtracking 2021-02-02 18:47:58 +01:00
Folkert
56f6770804 WIP 2021-02-02 01:56:50 +01:00
Folkert
8f5df8b7b8 fail when end of input is not reached by parser 2021-02-01 16:38:14 +01:00
Chadtech
69fcbf70ea
Merge branch 'trunk' into dict 2021-01-31 15:46:22 -05:00
Folkert
ac3788ba85 fix tests 2021-01-31 18:51:12 +01:00
Folkert
76f9444e46 clippy 2021-01-31 17:11:16 +01:00
Folkert
6f394aef08 notify when base and fx are available 2021-01-31 15:55:30 +01:00
Folkert
5a3a3a8310 block on unresolved shorthand 2021-01-31 15:17:01 +01:00
Folkert
74ad32f953 package-qualify module ids 2021-01-31 15:01:57 +01:00
Folkert
fd7e107069 add lifetime to dependencies 2021-01-31 14:49:03 +01:00
Folkert
b9579af16d refactor dependencies 2021-01-31 14:48:11 +01:00
Folkert
e4ae0f9e8c consider the effects module a proper module 2021-01-31 14:41:59 +01:00
Folkert
53afa3c3fc parse a shortname prefix before Effects 2021-01-31 13:43:19 +01:00
Folkert
4bd9d417d1 add stdin support for cli tests (currently unused) 2021-01-29 00:13:09 +01:00
Folkert
55eff1dba1 fix oversights 2021-01-28 15:32:22 +01:00
Folkert
936bf459eb initial version of rc optimization 2021-01-28 13:14:54 +01:00
Chadtech
171e0358f3 Mono and can tests for Dict.len Dict.empty 2021-01-24 14:43:08 -05:00
Chadtech
ec7d8e0dc9 Bringing in Trunk and resolving conflict 2021-01-23 21:23:31 -05:00
Folkert
4e6aac760a cleanup benchmarks platform 2021-01-21 20:23:47 +01:00
Chadtech
a46a7ef06a builtin_defs_map passed in explicitly in many places that want to monomorphize, so that we can use a new test_builtin_defs in tests. Hash test works 2021-01-18 22:38:51 -05:00
Chadtech
dd2dcc63d1 Pass in builtin look up function parameter 2021-01-18 21:25:10 -05:00
Folkert
ab6cb7ac93 pass stdlib by reference 2021-01-14 16:49:55 +01:00
rvcas
565cf21e1e fix(tests): need to adjust tests after changing builtin function types 2021-01-05 09:18:24 -05:00
rvcas
27cfd4d7ad more test fixes 2021-01-04 15:18:49 -05:00
rvcas
b34436e5cb Merge branch 'trunk' into int_a_float_a 2021-01-04 09:53:45 -05:00
rvcas
a123bfa3ee fix: tests compile and repl_eval 2021-01-04 09:46:10 -05:00
Folkert
6e0f57d7eb make invoke work 2021-01-02 00:55:09 +01:00
Jared Ramirez
faa8f66b6c Add gen support for Nat 2021-01-01 17:40:47 -06:00
Folkert
754521c4c3 all the clippy fixes 2021-01-01 00:40:41 +01:00
Folkert
728298d15a automatic clippy fixes 2021-01-01 00:05:45 +01:00
Folkert
45e57fcd25 fix test_load 2020-12-31 22:54:46 +01:00
Folkert
3469cf7acc remove uniqueness tests 2020-12-31 22:51:54 +01:00
Richard Feldman
16df2c8bcb
Merge pull request #829 from rtfeldman/functions-in-repl
Functions in repl
2020-12-26 23:38:53 -05:00
Folkert
a760a41e1f repl: show error for partial application 2020-12-26 22:13:05 +01:00
Folkert
95e0faad30 show type of lambda in the repl 2020-12-26 21:19:45 +01:00
Folkert
099584f4ee SendMap -> MutMap in tests 2020-12-26 18:37:30 +01:00
Folkert
b5c7c26978 SendMap -> MutMap 2020-12-26 18:12:43 +01:00
Folkert
2ef7072247 change type of exposed_vars_to_symbol 2020-12-26 17:46:15 +01:00
Folkert
0099e3e9fd rely on the symbol -> var mapping from solving; don't extract var from the def itself 2020-12-26 17:39:16 +01:00
Folkert
0d17e9a879 only store exposed symbols in Module 2020-12-26 17:18:03 +01:00
Folkert
58507fa7d9 recover symbol -> variable mapping from type inference 2020-12-26 17:16:02 +01:00
Anton-4
b085469602 Replaced large_enum_variant explanation with link to issue #800 2020-12-14 16:09:16 +01:00
Richard Feldman
0b620539ef Report accurate regions in unused imports 2020-12-13 22:51:23 -05:00
Folkert de Vries
3d9b82e35e
Merge branch 'trunk' into more-tea 2020-12-14 02:30:04 +01:00
Folkert
407f8b9321 turn unused module into a warning 2020-12-13 22:21:44 +01:00
Chadtech
db477e750c Merge branch 'rename-map-to-dict' of github.com:rtfeldman/roc into rename-map-to-dict 2020-12-11 23:49:06 -05:00
Chadtech
ce69487519 Rename Dict in test_load tests to RedBlackTree 2020-12-11 23:48:40 -05:00
Chadtech
cd6e6e6e4f
Merge branch 'trunk' into rename-map-to-dict 2020-12-11 23:39:10 -05:00
Chadtech
61728fd1d1 Merge branch 'trunk' of github.com:rtfeldman/roc into rename-map-to-dict 2020-12-11 20:21:40 -05:00
Folkert
462f6ac8e5 use C calling convention (approximation) when calling foreign functions 2020-12-12 01:30:39 +01:00
Folkert
f5c267acf4 fix problem with empty closures still considered closures 2020-12-10 23:58:53 +01:00
Folkert
16994cfaf7 shrink number of used variables (by a lot) 2020-12-10 00:13:09 +01:00
Folkert
7933d63573 clippy 2020-12-09 03:30:07 +01:00
Folkert
818465e8e1 update cli fixtures 2020-12-09 01:17:29 +01:00
Folkert
89a1237b06 refactor 2020-12-08 23:27:25 +01:00
Folkert
3969a73277 make Pkg-Config work as a module 2020-12-08 22:58:30 +01:00
Chadtech
2a068941b2 Resolve conflicts 2020-12-08 16:56:52 -05:00
Chadtech
b24933324a Changed Map to Dict in many tests 2020-12-08 16:55:33 -05:00
Folkert
4b665639ff special-case the PkgConfig 2020-12-08 21:39:30 +01:00
Folkert
5b521dccf4 make Pkg-Config into a module 2020-12-08 21:12:36 +01:00
Richard Feldman
149d10ea0b
Merge pull request #780 from rtfeldman/rvcas/rename_int
Rename Int to I64
2020-12-07 22:49:39 -05:00
rvcas
4987721154 feat(Num): rename Num.Int to Num.I64 2020-12-07 19:17:20 -05:00
Folkert
95a66bb1fc clippy 2020-12-08 00:27:53 +01:00
Folkert
0b0ae7b287 make it work! 2020-12-08 00:15:57 +01:00
Folkert
7123269f30 successfully load package-qualified host 2020-12-07 23:24:06 +01:00
Folkert
7919b2eef3 clippy 2020-12-06 22:16:53 +01:00
Folkert
0873792488 special-case effect modules so they are not parsed 2020-12-06 21:51:08 +01:00
rvcas
b130f86fdf fix: last hardcoded "platform" in file.rs 2020-12-06 14:13:24 -05:00
rvcas
f527afe9fd feat: put all exposes from platform in package module ids 2020-12-03 20:30:19 -05:00
rvcas
654a018106 chore: remove load pkg config from plain line 2020-12-03 20:06:25 -05:00
rvcas
6d4ecc8023 feat: handle plain line package 2020-12-03 19:10:10 -05:00
rvcas
4808611fc3 fix: don't hard code base 2020-12-02 21:53:15 -05:00
rvcas
bddc69896c feat: do not hardcode the platform path 2020-12-01 23:03:31 -05:00
rvcas
f72a63edbb feat: build a map of package qualified module names 2020-11-28 15:42:29 -05:00
Richard Feldman
d0c651726d Support package-qualified imports 2020-11-26 21:11:43 -05:00
rvcas
f7bd803509 feat(Num): rename Float to F64 2020-11-24 10:25:21 -05:00
Richard Feldman
b3b37db2c0 Fix test_uniq_load 2020-11-23 00:24:40 -05:00
Richard Feldman
1868051105 Allow for shorter app headers 2020-11-23 00:08:50 -05:00
Richard Feldman
ecfdadb5e3 Revert "Require packages and imports once again"
This reverts commit 119329dffc86edbb2bc0475dfcded905f0f19c04.
2020-11-23 00:08:50 -05:00
Richard Feldman
09d107e469 Require packages and imports once again 2020-11-23 00:08:49 -05:00
Richard Feldman
a7eb568267 Fix load tests 2020-11-23 00:08:49 -05:00
Richard Feldman
3e01df2bcf Update parse tests to incorporate module headers 2020-11-23 00:08:49 -05:00
Richard Feldman
eb6a7b51ff Use app path in output 2020-11-23 00:08:49 -05:00
Richard Feldman
a78434fd48 Finish introducing new header keywords 2020-11-23 00:08:49 -05:00
Folkert
4db48d9f13 more clippy things 2020-11-19 22:20:00 +01:00
Folkert
bde82c3bb6 add Store constraint that does not report errors 2020-11-12 15:47:56 +01:00
Folkert
cf80e2852f add test for transitive alias import 2020-11-11 01:20:30 +01:00
Folkert
6490956a84 fix deadlock in file.rs 2020-11-10 20:15:38 +01:00
Folkert
be5c748b7f revert some debug things 2020-11-10 14:12:01 +01:00
Folkert
3f658c4b98 Merge remote-tracking branch 'origin/trunk' into red-black-tree 2020-11-10 14:09:08 +01:00
Folkert
04cdc2a276 keep track of pending phases, so we don't repeat work 2020-11-10 12:57:06 +01:00
Richard Feldman
6b39f3dffe
Merge pull request #671 from rtfeldman/effect-module-refactor
Effect module refactor
2020-11-09 23:19:05 -05:00
Folkert
cc89088f60 thread through module timings 2020-11-09 21:20:57 +01:00
Folkert
0892451d47 more clippy 2020-11-09 20:03:10 +01:00
Folkert
f08f3e7510 cleanup 2020-11-09 19:53:03 +01:00
Folkert
492f0dcc84 add Effect.always and Effect.map 2020-11-09 19:14:26 +01:00
Folkert
14d6de626e add module for effect_module 2020-11-09 16:01:38 +01:00
Richard Feldman
54de538952
Merge pull request #666 from rtfeldman/return-function
Return function pointers and closures
2020-11-08 22:21:01 -05:00
Folkert
0d5aaf2aaa make getLine : Effect {} work 2020-11-08 23:36:08 +01:00
Sébastien Besnier
9b670bf092 remove unreachable branch 2020-11-08 13:45:47 +01:00
Sébastien Besnier
6dbde806d6 cargo-fmt 2020-11-08 13:43:11 +01:00
Sébastien Besnier
19bd75aa62 merge things from trunk 2020-11-08 13:43:11 +01:00
Sébastien Besnier
014131dabe handle AnnotatedBody everywhere. It compiles now! 2020-11-08 13:43:11 +01:00
Folkert
3d092cb9b7 in theory allow non-function effects values
this does not work due to limitations with functions in tag unions
2020-11-08 03:07:59 +01:00
Folkert
2a872f180a some foundations for zero-sized values in closures 2020-11-08 01:55:06 +01:00
Folkert
114e08f05f fix some typos 2020-11-08 00:20:00 +01:00
Folkert
e516a0aebb ignore the absence of a Pkg-Config file 2020-11-08 00:12:15 +01:00
Folkert
ae2246c122 theoretically allow dependencies in platform modules 2020-11-07 23:27:47 +01:00