Commit graph

14474 commits

Author SHA1 Message Date
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
Richard Feldman
1a891d340f Refactor out a .clone() 2019-12-18 20:02:07 -05:00
Richard Feldman
55730949f7 CI: cargo test (without --release) 2019-12-18 19:56:14 -05:00
Richard Feldman
372ceb11f5
Merge pull request #69 from rtfeldman/occurs
Do an occurs check
2019-12-18 19:53:28 -05:00
Richard Feldman
9745459522 Do what clippy suggests 2019-12-18 18:42:24 -05:00
Richard Feldman
e37f10de3f cargo update 2019-12-18 18:42:24 -05:00
Richard Feldman
a4a4ddbfb2 Finish occurs check 2019-12-18 18:42:21 -05:00
Richard Feldman
40db8411aa Add some functionality in can/ident 2019-12-18 18:41:21 -05:00
Richard Feldman
8446d68e96 use with_larger_debug_stack more 2019-12-18 18:41:00 -05:00
Richard Feldman
b297bc2f1c Do an occurs check in solve 2019-12-18 18:40:29 -05:00
Richard Feldman
afd33c2a23 Add Subs::occurs 2019-12-18 18:40:25 -05:00
Richard Feldman
59cf4f7269 Remove superfluous check.
We aren't doing Procedures during canonicalization,
2019-12-18 18:39:57 -05:00
Richard Feldman
c8ea1e4806 Add Subs::set_rank 2019-12-18 18:38:53 -05:00
Richard Feldman
dd5fdd90aa Drop unused import 2019-12-18 18:38:46 -05:00
Richard Feldman
978f498455 Make Rank opaque 2019-12-18 18:38:35 -05:00
Folkert de Vries
c91bb1deb3
Merge branch 'trunk' into type-signatures 2019-12-18 19:04:36 +01:00
Folkert
c7851df5f9 remove unneeded clone 2019-12-18 18:14:40 +01:00
Folkert
c95a389c4f hook up rigid type variables in tests 2019-12-18 18:00:28 +01:00
Folkert
a7a461fd43 hook up rigid type variables 2019-12-18 18:00:13 +01:00
Folkert
a636da456b expose function to create rigid 2019-12-18 17:57:39 +01:00
Folkert
90d344cac3 Don't duplicate rigids
A signature like

    a -> a

Should only create one variable (a rigid one, with name "a")
2019-12-18 17:56:41 +01:00
Folkert
a33faa087b turn sendmap into hashmap of free type variables 2019-12-18 14:15:56 +01:00
Richard Feldman
4165e61950
Merge pull request #66 from rtfeldman/when
Use when...is in roc-for-elm-programmers
2019-12-18 07:56:45 -05:00
Folkert
3598494f85 prepare for rebase 2019-12-18 13:53:45 +01:00
Folkert
4d2e4f7ebc find free rigid type variables in annotations 2019-12-18 13:53:45 +01:00