Commit graph

9048 commits

Author SHA1 Message Date
Richard Feldman
26628914b8 Merge remote-tracking branch 'origin/trunk' into annotations-without-bodies 2019-12-20 23:35:52 -05:00
Richard Feldman
ddb664b554 Remove some stray dbg! calls 2019-12-20 23:30:45 -05:00
Richard Feldman
abec56973d Back out the deep copying and tests for now 2019-12-20 23:30:45 -05:00
Richard Feldman
05d0e94245 Add tests for identity inference 2019-12-20 23:30:45 -05:00
Richard Feldman
4018ecbf25 Avoid some clones 2019-12-20 23:30:45 -05:00
Richard Feldman
aa24cdbef3 Deep copy var 2019-12-20 23:30:45 -05:00
Richard Feldman
94cc22f9ca Use resgister more, fix type_to_vars 2019-12-20 23:30:45 -05:00
Richard Feldman
cc3ddd2667 Improve some comments 2019-12-20 23:30:45 -05:00
Richard Feldman
696a87869b Fix some incorrect usages of vars 2019-12-20 23:30:45 -05:00
Richard Feldman
03f5896e89 Drop some unused pattern Variables 2019-12-20 23:30:45 -05:00
Richard Feldman
4afa116156 Make Debug formatting less noisy 2019-12-20 23:30:45 -05:00
Richard Feldman
c5ce0941d0 Reproduce identity bug 2019-12-20 23:30:45 -05:00
Richard Feldman
59e60bc9dc
Merge pull request #76 from rtfeldman/accessor-function
add record accessor functions
2019-12-20 23:29:20 -05:00
Chad Stearns
d6186f38ed cargo fmt and clippy 2019-12-20 16:16:45 -05:00
Chad Stearns
b7cb2cc346 Put if case in fmt_if 2019-12-20 16:14:44 -05:00
Chad Stearns
32a6afb817 Multi-line if statement 2019-12-20 16:04:09 -05:00
Folkert
4862409b1d add .foo record accessors 2019-12-20 19:44:19 +01:00
Folkert
399ca65b4b Implement equivalence for patterns
so we can add signatures for non-identifiers, e.g.

    { x, y } : ...
    { x, y } = ...
2019-12-20 16:28:02 +01:00
Folkert
cbca93b030 use pattern in FromAnnotation
so we can also annotate non-identifier patterns.
2019-12-20 15:41:42 +01:00
Folkert
307b19bd2c remove unneeded mut
rigids only need to be on the top-level Output. The one here is actually
unused.
2019-12-20 14:48:58 +01:00
Folkert
4bfaaf5dd7 refactor def pattern canonicalization 2019-12-20 13:34:23 +01:00
Folkert
1c9886f9ca refactor getting the arity from a type 2019-12-20 13:18:22 +01:00
Folkert
d6fea22f7a typecheck annotations without bodies 2019-12-20 13:10:30 +01:00
Richard Feldman
b47522489c
Merge pull request #74 from rtfeldman/pools
Introduce Pools
2019-12-19 22:57:24 -05:00
Richard Feldman
a95dc52f3b Do clippy things 2019-12-19 22:44:50 -05:00
Richard Feldman
ee4bf21942 Add get_without_compacting for debug_assert 2019-12-19 22:44:37 -05:00
Richard Feldman
fbf5dbdf43 Replace solve() with solve::run() 2019-12-19 22:29:50 -05:00
Richard Feldman
f6d21d756d Add Subs::introduce 2019-12-19 22:17:21 -05:00
Richard Feldman
9bf73bdbc7 Make Rank be usize and have Display 2019-12-19 22:17:21 -05:00
Richard Feldman
8daa75a41d Show Clone after Copy 2019-12-19 22:17:21 -05:00
Richard Feldman
619aedfc3e Drop some obsolete comments 2019-12-19 22:17:21 -05:00
Richard Feldman
e467795642
Merge pull request #73 from rtfeldman/accessor-fixes
Accessor fixes
2019-12-19 18:29:47 -05:00
Folkert
f7cb11afc9 do what clippy wants 2019-12-20 00:17:45 +01:00
Folkert
2baf8f1b49 do what clippy wants 2019-12-19 23:41:55 +01:00
Folkert
a5cf0fc505 Parse field access after record literal
e.g. `{ x: 4 }.x` now parses. This is of limited practical use of course
but I would expect this to work based on the signature of `.x`.
2019-12-19 16:50:55 +01:00
Folkert
8ba59e035d Return an Accessor when it is canonicalized 2019-12-19 16:17:03 +01:00
Richard Feldman
d31544b955
Merge pull request #72 from rtfeldman/commas
Use commas between function params
2019-12-18 22:08:56 -05:00
Richard Feldman
0d5e7ebac3 Extract a fmt_closure function
Clippy said to, but also, to be fair...seems reasonable.
2019-12-18 22:00:46 -05:00
Richard Feldman
c33b8a4fe3 Update Bool builtin a bit 2019-12-18 21:51:08 -05:00
Richard Feldman
d0fa8bf857 Use commas between function arguments 2019-12-18 21:50:45 -05:00
Richard Feldman
a0bf4d829d Comma-separated args in roc-for-elm-programmers 2019-12-18 21:16:40 -05:00
Richard Feldman
8b57297713
Merge pull request #71 from rtfeldman/clippy-dbg
Have clippy warn on dbg macro use
2019-12-18 20:53:42 -05:00
Richard Feldman
9b97fa8c47 Have clippy warn on dbg macro use 2019-12-18 20:46:47 -05:00
Richard Feldman
2761ba7caa
Merge pull request #68 from rtfeldman/type-signatures
Use type signatures
2019-12-18 20:46:28 -05:00
Richard Feldman
8aeae69017 Do what clippy says 2019-12-18 20:31:23 -05:00
Richard Feldman
02690373da Clean up some dbg calls 2019-12-18 20:13:30 -05:00
Richard Feldman
bc10a0e130 Remove a .clone() 2019-12-18 20:09:14 -05:00
Richard Feldman
f5e628296f
Merge branch 'trunk' into type-signatures 2019-12-18 20:06:03 -05:00
Richard Feldman
99434490c9
Merge pull request #70 from rtfeldman/cargo-test-dev
Run cargo test (without --release) on CI
2019-12-18 20:05:21 -05:00
Richard Feldman
ed6d8ded7f Merge remote-tracking branch 'origin/trunk' into type-signatures 2019-12-18 20:05:04 -05:00