Commit graph

73 commits

Author SHA1 Message Date
Folkert
2db7c0503f fix uniq record destructure patterns 2020-01-07 20:09:52 +01:00
Folkert
99aaa31bdc it works? use boolean unifcation in normal unification 2020-01-07 19:17:12 +01:00
Folkert
2b7a20bd23 add boolean to Type and FlatType 2020-01-07 19:03:29 +01:00
Folkert
3268c267bd add Boolean to Structure 2020-01-07 17:11:28 +01:00
Folkert
5ad2823a23 support Tag arguments 2020-01-05 22:49:08 +01:00
Folkert
26bd52c2a2 scaffolding for tag unions 2020-01-05 20:54:34 +01:00
Folkert
863dafa806 correctly infer invalid recors 2020-01-02 23:35:42 +01:00
Richard Feldman
8d4c095ccb Enable copying 2020-01-01 17:02:22 -05:00
Richard Feldman
784b22a28e Make and use a newtype for OptVariable 2020-01-01 15:29:05 -05:00
Richard Feldman
5cb9a4ba2d Use Variable::NULL with copy 2020-01-01 15:14:45 -05:00
Richard Feldman
2f61455061 Merge remote-tracking branch 'origin/trunk' into improve-errors 2020-01-01 04:04:53 -05:00
Richard Feldman
be7bc99f56 Update a comment 2019-12-29 08:00:44 -08:00
Richard Feldman
e70e72f520 Use iter.chain() instead of two loops 2019-12-29 08:00:44 -08:00
Richard Feldman
b715d3e2f8 Replace Mark:: functions with consts 2019-12-29 08:00:43 -08:00
Richard Feldman
f04d8f5b03 Replace Rank::none() with Rank::NONE 2019-12-29 08:00:24 -08:00
Richard Feldman
5ff26476fd Rename some things 2019-12-24 10:03:12 -08:00
Richard Feldman
302b03cb20 Make defs use "let rec" style; drop Variable 2019-12-22 20:03:45 -08:00
Richard Feldman
760de2f328 Rename Rank::outermost to Rank::toplevel 2019-12-22 20:03:22 -08:00
Richard Feldman
6df252a54e Improve error message reporting 2019-12-21 18:26:43 -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
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
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
9745459522 Do what clippy suggests 2019-12-18 18:42:24 -05:00
Richard Feldman
a4a4ddbfb2 Finish occurs check 2019-12-18 18:42:21 -05:00
Richard Feldman
b297bc2f1c Do an occurs check in solve 2019-12-18 18:40:29 -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
99b14aed27 Follow clippy's suggestions 2019-12-07 23:05:25 -05:00
Richard Feldman
ca219a1b64 Record problems in unification 2019-12-07 23:05:25 -05:00
Richard Feldman
e831e165dd Add basic support for Record and Alias 2019-12-07 17:47:20 -05:00
Richard Feldman
bfacfa729b Update comment 2019-12-07 00:40:57 -05:00
Richard Feldman
d86af21c7f Remove ExposedImport 2019-12-07 00:33:10 -05:00
Richard Feldman
6803838994 Improve some comments 2019-12-06 20:34:41 -05:00
Richard Feldman
5eb843326c Update solve and unify 2019-12-03 01:31:08 -05:00
Richard Feldman
be1e83dd6d Use crate:: prefix a bunch. 2019-11-27 22:11:40 -05:00
Richard Feldman
9c190e4a63 s/assignment/def 2019-11-20 19:39:45 -05:00
Richard Feldman
9ee5fad6ab Remove unnecessary ref 2019-11-16 22:29:36 -05:00
Richard Feldman
3a7401ecf6 Do what clippy says 2019-11-15 01:23:53 +00:00
Richard Feldman
46758e1209 Drop unused BinOp type 2019-11-09 03:31:06 -05:00
Richard Feldman
4611211d34 Solve Pattern constraints 2019-11-09 03:30:41 -05:00
Richard Feldman
97d424f99b Unary ops and case canonicalization compile! 2019-11-08 00:07:32 -05:00
Richard Feldman
7ab7fdb88c Add unary operators 2019-11-04 21:25:55 -05:00
Richard Feldman
886116ce15 Canonicalize Defs, Apply, Var, and others 2019-10-17 22:33:16 -04:00
Richard Feldman
65f384cb6a Restore some stuff to how it was before 2019-10-17 08:55:35 -04:00
Richard Feldman
f74f0f6ab7 Get tests compiling again 2019-10-16 23:38:12 -04:00