Commit Graph

68 Commits

Author SHA1 Message Date
Richard Feldman
0a50b0b488 Change license to UPL-1.0
Closes https://github.com/rtfeldman/roc/issues/1199
2021-04-21 19:18:44 -04:00
Richard Feldman
792a18816a Update authors in Cargo.toml 2021-04-11 08:11:52 -04:00
Folkert
62da85cc06 remove ATTR_ATTR usage 2021-04-04 23:18:50 +02:00
Folkert
fa7dec2997 no more boolean algebra 2021-04-04 21:22:59 +02:00
rvcas
e4babd4445 chore(unify): move re-used logic into a helper function for TagUnion and Func 2021-03-28 23:42:29 -04:00
rvcas
f8a6cd6a74 feat(unify): clean up with @folkertdev 2021-03-24 15:37:23 -04:00
rvcas
6009501114 tests(solve_expr): mismatch still not properly being reported 2021-03-23 22:46:48 -04:00
rvcas
b063b45481 feat(unify): we were actually hitting the second case but desc now comes from first 2021-03-22 00:50:03 -04:00
rvcas
36ec1a0f56 feat(unify): clippy warnings 2021-03-21 00:38:00 -04:00
rvcas
3098bcf61d feat(unify): Func, TagUnion add the other way 2021-03-21 00:28:52 -04:00
rvcas
7f7386c639 feat(unify): basic tag functions seem to work 2021-03-21 00:17:20 -04:00
rvcas
80915105bc feat(unify): start unifying a single-tag union no payload with Func 2021-03-19 14:20:05 -04:00
Folkert
1c9cc6bc9b extra debug info 2021-03-03 20:10:36 +01:00
Folkert
a08485b0ee fix alias error incorrectly reported 2021-02-16 17:07:33 +01:00
rvcas
c9308c0662 add new layer to the Num types 2020-12-21 09:56:11 -05:00
Anton-4
6e3bd69e7c rust fmt 2020-12-15 15:21:20 +01:00
Anton-4
b085469602 Replaced large_enum_variant explanation with link to issue #800 2020-12-14 16:09:16 +01:00
Folkert
f8bfd9a9f4 clippy 2020-11-15 02:15:48 +01:00
Folkert
342059ab6c fix bug in Recursion ~ Flex unification 2020-11-14 23:54:22 +01:00
Folkert
bde82c3bb6 add Store constraint that does not report errors 2020-11-12 15:47:56 +01:00
Folkert
4868c0bd25 fix problem with patterns and optional record fields 2020-11-09 01:04:40 +01:00
Folkert
6ecb3b36d0 cleanup based on review 2020-10-31 15:57:15 +01:00
Folkert
9e981c264e fix clippy issues 2020-10-30 22:28:55 +01:00
Folkert
73e0ea2e5d fix some mistakes 2020-10-30 00:35:40 +01:00
Folkert
ef1cee6c41 HUGE WIP 2020-10-28 01:13:04 +01:00
Folkert
5fbcfe18d3 new recvar design 2020-10-26 16:16:01 +01:00
Folkert
7d2cc3aac2 WIP 2020-10-25 22:16:27 +01:00
Folkert
33ff36daad make things work by removing type signatures 2020-10-19 00:28:14 +02:00
Folkert
81af929f8f always unify full alias body, even when alias names match 2020-10-18 21:16:22 +02:00
Folkert
de8ad07f2e Merge branch 'top-level-thunks' into sized-functions-inference 2020-10-14 21:58:53 +02:00
Folkert
62ed1508d5 fix mistake in tests
no idea why this passed before, it clearly shouldn't
2020-10-14 16:37:53 +02:00
Folkert
f07fe1879b fix problem with specializing rigids 2020-10-14 02:21:33 +02:00
Folkert
40f0588696 back to a working state 2020-10-11 21:55:26 +02:00
Folkert
e9f5c1a73c actually infer the size 2020-10-02 22:33:31 +02:00
Folkert
2e1e87ad6a add closure size variable 2020-10-02 00:53:02 +02:00
Folkert
ad8e9db896 fix comments/warnings 2020-09-08 14:18:55 +02:00
Folkert
4522fe14fc fix recursion issue in type inference 2020-09-07 16:35:49 +02:00
Folkert
127dd06586 fix bug with optional record fields 2020-09-07 14:13:22 +02:00
Folkert
46755973d6 wip 2020-09-06 18:53:26 +02:00
Folkert
f9cf4ea371 recursive tag unions 2020-08-31 14:29:09 +02:00
Folkert
ba186bfe09 can store, but not load recursive fields 2020-08-22 16:01:04 +02:00
Folkert
b45b39af5e optional fields improvements 2020-07-21 15:25:21 +02:00
Richard Feldman
98a8bb8115 Fix unifying optional fields 2020-07-18 14:26:38 -04:00
Richard Feldman
ae05f0eb0c Unify optional fields 2020-07-18 12:50:47 -04:00
Folkert
88ca25e7ee move get_shared function to collections 2020-07-17 23:49:43 +02:00
Folkert
c589be43c6 fix triple (or more) mutualy recursive type aliases 2020-06-30 14:25:47 +02:00
Folkert
5483ec819f fix infinite unfolding of recursive tag union 2020-06-30 13:54:16 +02:00
Folkert
b4480e212a fix uniqueness attribute on nested recursive aliases 2020-06-29 17:08:39 +02:00
Folkert
e5ec7cbdcf clippy 2020-06-29 00:18:50 +02:00
Folkert
3fc2323891 fix recursion bug
previously, `Cons 1 (Cons {} Nil)` would get inferred as ConsList Int, because only the outer layer of a tag union was checked with the recursive tag union. Now this is done continually.
2020-06-29 00:18:50 +02:00