Richard Feldman
8690472695
Fix shadowing problem in test_infer
2020-02-21 00:30:02 -08:00
Richard Feldman
7c752da6d0
Merge pull request #196 from rtfeldman/top-sort-aliases
...
Handle mutually recursive aliases
2020-02-21 00:26:17 -08:00
Richard Feldman
4f5a220d4c
Revert "Revert "Fix spurious UnusedDef on type aliases""
...
This reverts commit e2f18eb693
.
2020-02-21 00:23:31 -08:00
Richard Feldman
40168c40a7
Revert "Revert "Fix spurious UnusedDef on type aliases""
...
This reverts commit e2f18eb693
.
2020-02-21 00:20:29 -08:00
Richard Feldman
49423cfd5d
Merge branch 'builtin-types' into top-sort-aliases
2020-02-21 00:17:20 -08:00
Richard Feldman
e2f18eb693
Revert "Fix spurious UnusedDef on type aliases"
...
This reverts commit 14e9d7b729
.
2020-02-21 00:15:14 -08:00
Richard Feldman
126a12a77f
Merge remote-tracking branch 'origin/trunk' into builtin-types
2020-02-21 00:11:53 -08:00
Richard Feldman
14e9d7b729
Fix spurious UnusedDef on type aliases
2020-02-21 00:01:11 -08:00
Richard Feldman
557b1e7d70
Gather all references using mut
2020-02-20 23:51:46 -08:00
Richard Feldman
27fbd9e641
Fail inference tests on canonicalization problems
2020-02-20 23:38:26 -08:00
Richard Feldman
4a586a0f6e
Reorder references unioning
2020-02-20 23:38:06 -08:00
Richard Feldman
ca4e18481b
fix typo
2020-02-20 23:37:39 -08:00
Richard Feldman
7afa19809e
Update some docs
2020-02-20 21:43:50 -08:00
Richard Feldman
2e2400bf08
Remove some unnecessary cloning
2020-02-19 23:22:59 -08:00
Richard Feldman
625b7cb761
Rename aliases to imported_aliases for clarity
2020-02-19 23:22:41 -08:00
Richard Feldman
f8b831b2ca
Drop obsolete comment
2020-02-19 23:17:55 -08:00
Richard Feldman
32a455266b
Move Principal.roc into no_deps/
2020-02-19 21:38:01 -08:00
Richard Feldman
2c0e6eeec1
Reproduce Unit alias bug
2020-02-19 21:36:54 -08:00
Richard Feldman
8fdc77167a
Add test for unit alias working in defs
2020-02-19 21:32:50 -08:00
Richard Feldman
54a5349306
Reproduce alias import bug
2020-02-19 21:24:28 -08:00
Richard Feldman
8e37b650cd
Rename Result to Res in tests
2020-02-19 21:24:27 -08:00
Richard Feldman
c09abf44d9
Drop extraneous file
2020-02-19 21:24:27 -08:00
Richard Feldman
9cd810ae15
Fix missing rigids
2020-02-19 20:13:57 -08:00
Richard Feldman
9b6430593c
Rename some tests
2020-02-19 20:13:45 -08:00
Richard Feldman
654ffeb3ac
Panic explicitly in test helper
2020-02-19 20:13:35 -08:00
Richard Feldman
1e7becf742
helper shouldn't be public
2020-02-19 20:13:20 -08:00
Richard Feldman
0e1b2b6f5e
Drop unnecessary &
2020-02-19 20:13:06 -08:00
Richard Feldman
80d3eca7f3
add commented-out parse error reproduction
2020-02-19 18:19:43 -08:00
Richard Feldman
a4e80b196e
reproduce variable problem
2020-02-19 18:19:43 -08:00
Richard Feldman
91f708c4a4
fix test_uniqueness_infer shadowing errors
2020-02-19 18:19:43 -08:00
Richard Feldman
4bec799dc0
fix type mismatches on test_infer
2020-02-19 18:18:33 -08:00
Richard Feldman
b7a40f69a7
enable pretty_assertions in test_load
2020-02-19 18:18:14 -08:00
Richard Feldman
1d0c667f6f
reproduce annotation bug
2020-02-19 18:18:00 -08:00
Richard Feldman
5131cc5c39
rename an inaccurately named var
2020-02-19 18:17:48 -08:00
Richard Feldman
060673f58d
restore some infer tests
2020-02-19 18:17:33 -08:00
Richard Feldman
5b258cec00
Revise quicksort a bit
2020-02-19 18:17:19 -08:00
Richard Feldman
1b1b50b8c9
fix converting FunctionPointer from Layout to LLVM
2020-02-19 18:16:31 -08:00
Richard Feldman
5677e4f5cb
fix int pattern matching code gen
2020-02-19 18:16:18 -08:00
Richard Feldman
9aeef66d56
flatten unions and records
2020-02-19 18:15:56 -08:00
Richard Feldman
d46fbcff0b
refactor: use from_layout everywhere
2020-02-19 18:15:35 -08:00
Richard Feldman
7ce5c07d2f
refactor out type_from_var in crane::build
2020-02-19 18:15:16 -08:00
Richard Feldman
f58c50bc26
First pass at builtins involving tag unions
2020-02-19 18:14:53 -08:00
Folkert
203add5518
convert mutually recursive tag unions to recursive ones
2020-02-19 21:27:24 +01:00
Folkert
24b3056005
Merge remote-tracking branch 'origin/builtin-types' into top-sort-aliases
2020-02-19 20:12:35 +01:00
Folkert
838417dfcf
panic on mutually recursive alias
2020-02-19 20:05:51 +01:00
Folkert
58b7c712af
sketch design
2020-02-19 20:05:51 +01:00
Folkert
c668b1f6f9
push Quicksort.roc
2020-02-19 20:05:51 +01:00
Folkert
923edff562
make BuiltinAlias type arguments positional
...
So in Result a e, a is VarId(1), e is VarId(2)
2020-02-19 20:05:51 +01:00
Folkert
7fee9737e2
streamline import constraint generation
...
aliases and values are kind of separate (though the aliases still occur in the values, they are ignored). Constraints are generated more efficiently (no longer a linked list of LetConstraint
2020-02-19 20:05:51 +01:00
Folkert
e48a412faf
infer quicksort
2020-02-19 20:05:51 +01:00