Commit graph

9048 commits

Author SHA1 Message Date
Chad Stearns
7a70160d64 Multi line lists 2020-01-04 17:40:58 -05:00
Folkert
4147582738 remove RecordFieldLabel enum (now a type alias)
I've kept it a type alias so that we can more easily change this in the future. But removing the alias is also simple
2020-01-04 23:22:40 +01:00
Richard Feldman
6704b98176
Merge pull request #105 from rtfeldman/fix-retlec-rigids
port elm's letrec & don't track rigids in during constraint generation
2020-01-03 21:11:24 -05:00
Folkert
050643e99d use new letrec in uniq infer 2020-01-04 01:21:44 +01:00
Folkert
05dfbbe2be remove rigid tracking from constrain
This is already done during canonicalization, so we don't have to do it again
2020-01-04 01:03:24 +01:00
Folkert
5b3aeef3a1 port elm's letrec 2020-01-03 14:18:04 +01:00
Richard Feldman
14960e0055
Merge pull request #104 from rtfeldman/nested-def
Code gen nested defs
2020-01-02 21:02:02 -05:00
Richard Feldman
b7dfb716e7 Use InlinableStr for Symbol 2020-01-02 20:11:31 -05:00
Richard Feldman
b45fefd617 Update im and Inkwell 2020-01-02 19:57:07 -05:00
Richard Feldman
be9f784eca Store and use Variable in Let/LetRec 2020-01-02 19:48:42 -05:00
Richard Feldman
dcf79c469f Reproduce nested defs code gen failure 2020-01-02 19:48:42 -05:00
Richard Feldman
d32800dceb
Merge pull request #103 from rtfeldman/fix-record-infer
Fix record infer
2020-01-02 19:29:06 -05:00
Richard Feldman
3af56306c2
Merge branch 'trunk' into fix-record-infer 2020-01-02 19:18:22 -05:00
Richard Feldman
b1050cef2c
Merge pull request #101 from rtfeldman/gen-let
Code gen basic defs
2020-01-02 18:49:05 -05:00
Folkert
9e81c2802b make changes to let in uniq infer 2020-01-03 00:17:04 +01:00
Richard Feldman
1e59ec5132
Merge branch 'trunk' into gen-let 2020-01-02 18:02:14 -05:00
Folkert
f15e30f7bd make test that checks invalid record type 2020-01-02 23:50:13 +01:00
Folkert
863dafa806 correctly infer invalid recors 2020-01-02 23:35:42 +01:00
Folkert de Vries
72e4c37fe2
Merge pull request #88 from rtfeldman/enable-copying
Enable copying, fixing principality
2020-01-02 19:43:48 +01:00
Folkert
07cfbd1589 add missing var in uniq infer 2020-01-02 17:57:57 +01:00
Folkert
ddfb240242 comment uniqueness test we'll fix later 2020-01-02 17:45:57 +01:00
Folkert
552fd14651 work on uniqueness infer 2020-01-02 17:32:57 +01:00
Folkert
b1c0d0ba0d comment out tests that typecheck cross-module 2020-01-02 17:00:01 +01:00
Folkert
4eb5c97e4b add missing variable to vars 2020-01-02 16:12:47 +01:00
Richard Feldman
c2d5c1f5f8 Merge vars and scope 2020-01-02 04:45:46 -05:00
Richard Feldman
bd44326863 Make get_chained_defs be out of order 2020-01-02 04:29:47 -05:00
Richard Feldman
f937ff5cf4 Introduce Scope to code gen chained defs 2020-01-02 04:28:24 -05:00
Richard Feldman
ac55ae8525 Add failing test for code gen of chained defs 2020-01-02 04:28:24 -05:00
Richard Feldman
e056a4c6a5 Improve some error messages 2020-01-02 04:28:24 -05:00
Richard Feldman
14db322754 Add more gen defs tests 2020-01-02 04:28:24 -05:00
Richard Feldman
4984e66735 Drop obsolete resolved_vars 2020-01-02 04:28:24 -05:00
Richard Feldman
2b9086e711 Store only basic types in code gen defs 2020-01-02 04:28:18 -05:00
Richard Feldman
45a4740c99 Adopt clippy's suggestions 2020-01-02 02:12:34 -05:00
Richard Feldman
cac741ec8b Infer generated variable types 2020-01-02 02:11:55 -05:00
Richard Feldman
03ffecd9bd Add OptVariable::unwrap_or_else 2020-01-02 02:07:53 -05:00
Richard Feldman
f28a1212c2 Add a Debug instance for OptVariable 2020-01-02 02:07:43 -05:00
Richard Feldman
a547e51498 use &Subs over &mut Subs in code gen 2020-01-02 02:06:55 -05:00
Richard Feldman
71d2021f63 Add failing test for gen def 2020-01-02 02:05:29 -05:00
Richard Feldman
db8c3dd7c4 Code gen LetNonRec 2020-01-02 00:58:50 -05:00
Richard Feldman
0c3e569b3d Add TypedVal::into_basic_value 2020-01-02 00:58:35 -05:00
Richard Feldman
12f9bc845f Add Symbol::as_str() 2020-01-02 00:57:28 -05:00
Richard Feldman
eed195e761 Drop obsolete comment 2020-01-01 21:43:18 -05:00
Richard Feldman
c54a8f7e1a Drop the Float.div from without builtins test 2020-01-01 21:38:46 -05:00
Richard Feldman
fc323fff32 Add load_and_infer_without_builtins 2020-01-01 21:37:49 -05:00
Richard Feldman
9ae3a792f3 Extract more test helpers 2020-01-01 21:37:41 -05:00
Richard Feldman
e56e18b0ca Extract expect_types helper 2020-01-01 21:11:12 -05:00
Folkert
4f3f85f064 fix principality 2020-01-02 00:48:02 +01:00
Richard Feldman
e23bff79ac fixup! Reproduce principality bug 2020-01-01 17:02:50 -05:00
Richard Feldman
452e59c7a3 Allow converting from Variable to OptVariable 2020-01-01 17:02:22 -05:00
Richard Feldman
8d4c095ccb Enable copying 2020-01-01 17:02:22 -05:00