Commit Graph

335 Commits

Author SHA1 Message Date
Stew O'Connor
258ec6357f Add an Any parameter to the Failure type 2021-01-28 13:57:03 -08:00
Stew O'Connor
17fe0e6e19 Merge remote-tracking branch 'origin/trunk' into stew/tls-testing 2021-01-23 01:25:52 -08:00
Stew O'Connor
71aeeee669 tls tests are working woot 2021-01-23 00:57:23 -08:00
Dan Doel
c3bd993b9a Fix transcripts for added builtins 2021-01-14 14:28:58 -05:00
Stew O'Connor
550d577e11 lots of IO tests working
we have transcripts for threads, mvars, net.
2021-01-13 14:20:57 -08:00
Paul Chiusano
fc77e9a359 Switch to simpler runtime representation. Tests pass. Regenerating transcripts. 2020-12-11 10:49:25 -05:00
Paul Chiusano
6b94ab70c8
Merge pull request #1766 from unisonweb/fix/ability-unification
A couple fixes to ability unification
2020-12-07 14:10:32 -05:00
Paul Chiusano
9d5df9db1a
Merge pull request #1735 from wbadart/patch-1
Quick grammar fix in OutputMessages.hs
2020-12-07 11:01:39 -05:00
Will Badart
faae761742
Update transcripts 2020-12-03 11:32:18 -05:00
Dan Doel
5d80a8ddb2 Minimal change for improved ability inference
- This commit delays making up inference variables until the
  outermost universal quantifiers of a type annotation have
  been unwrapped and added to the context. However, failures
  can still be generated by putting quantifiers inside other
  connectives.
2020-12-03 10:23:33 -05:00
Stew O'Connor
1a36beec09 re-run transcripts 2020-12-02 16:27:45 -08:00
Stew O'Connor
d1d09d9197 Merge branch 'trunk' into feature/tls 2020-12-02 15:22:01 -08:00
Stew O'Connor
ab063bc444 fixing transcripts for utf8 and hashing 2020-12-02 14:11:54 -08:00
Dan Doel
e4961c84b2 Fix test case; improve transcript test and add output 2020-11-25 21:12:09 -05:00
Dan Doel
b059ef26b4 Add a failing transcript for the bug 2020-11-25 13:20:47 -05:00
Paul Chiusano
d706550926
Merge pull request #1748 from unisonweb/topic/mobile-code
Finish implementing code serialization support
2020-11-24 17:27:56 -05:00
Paul Chiusano
21abeaad09
Merge pull request #1752 from unisonweb/fix/1731
Avoid parsing erroneous patterns
2020-11-24 17:15:52 -05:00
Dan Doel
4bc0b9984f Fix erroneous transcript updates. 2020-11-24 16:36:59 -05:00
Dan Doel
8f0901f435 Transcript modifications
- I attempted to determine where the extra newlines came from,
  but I failed.
2020-11-24 14:18:15 -05:00
Paul Chiusano
ca5efc3998 working on removing some backtracking 2020-11-20 12:53:34 -05:00
Paul Chiusano
20e56766a1 Merge remote-tracking branch 'origin/trunk' into topic/lexer2 2020-11-19 20:21:04 -05:00
Paul Chiusano
f4a7ebeea9 rerun transcripts 2020-11-19 20:20:51 -05:00
Paul Chiusano
0a5c9bb648 All tests and transcripts passing 2020-11-19 14:05:07 -05:00
Dan Doel
2699b6c470 Pre-calculate abilities involved in pattern matching
- Previously, the type checker was not using the patterns to inform
  which abilities are matched on in cases at all.
- Instead, we walk through all patterns and compile a list of all
  abilities involved in matching, then perform a subtype check on
  the scrutinee type with a type consisting of all the abilities.
- This strategy seems to be more robust than trying to handle this
  case-by-case. In such scenarios, recursion can lead to additional
  effects being pushed into the `Request` type that are not informed by
  the pattern matching.
- This causes the 1696 transcript to fail appropriately (I believe).
2020-11-17 17:03:28 -05:00
Dan Doel
37a36dce40 Fix type of Code.cache_ 2020-11-16 14:02:14 -05:00
Paul Chiusano
a07011f1de Adding a test case that fails in the wrong way 2020-11-11 12:33:46 -05:00
Paul Chiusano
097a85f111 Add failing transcript 2020-11-11 11:41:55 -05:00
Dan Doel
40e2db5722 Merge branch 'trunk' into topic/mobile-code
- Fixes conflicts
2020-11-10 14:14:25 -05:00
Dan Doel
88ae6d8c08 Transcript changes for code ops 2020-11-10 11:19:43 -05:00
Paul Chiusano
e721fc7d6f Fix #1737 2020-10-27 17:21:37 -04:00
Paul Chiusano
f6296c3489 add some more tests of corner cases to the transcript 2020-10-23 10:01:18 -04:00
Paul Chiusano
e784107d64 Implement fix. There were lots of tests that were inadvertently relying on the bug. 2020-10-22 22:33:12 -04:00
Paul Chiusano
f90dc7bd58 Merge remote-tracking branch 'origin/trunk' into fix/845 2020-10-22 16:59:17 -04:00
Paul Chiusano
9081a4ed3a Add failing transcript 2020-10-22 16:58:33 -04:00
Paul Chiusano
5606c5dc20 refresh transcripts 2020-10-21 22:47:25 -04:00
Paul Chiusano
b176fbce3f Merge remote-tracking branch 'origin/trunk' into fix/1390 2020-10-21 22:43:25 -04:00
Paul Chiusano
54b59c1a2d okay, not too shabby 2020-10-21 22:42:35 -04:00
Paul Chiusano
954bc15277 have something working, but not sure I love the results 2020-10-21 20:57:58 -04:00
Rúnar
8c1c57e195
Merge pull request #1732 from unisonweb/fix/1578
Allow suffix-based name resolution to refer to definitions in the current file
2020-10-21 20:21:57 -04:00
Paul Chiusano
b017cc70ff transcript establishing current behavior 2020-10-21 15:36:51 -04:00
Paul Chiusano
15d8691caf Added clearer explanation of the resolution rule 2020-10-20 18:56:09 -04:00
Paul Chiusano
608ad4830c fix unit tests and regenerate transcripts
I was puzzled about the change to the blocks.md transcript at first. What's happening: the previous version of the transcript was going through TDNR, and was failing the cycle check for mutually recursive lambdas. The new version isn't going through TDNR at all, it's just doing ordinary typechecking of a cycle, and cycles don't have access to any abilities so it's failing with the expected error now. Arguably, the example should have used the FQN so TDNR wasn't involved in the previous example.
2020-10-20 18:26:46 -04:00
Paul Chiusano
b801522c27 Allow suffix-based resolution to resolve to definitions in the same file 2020-10-20 18:12:44 -04:00
Paul Chiusano
f26d81ae0e Improve test transcript and implement fix 2020-10-20 17:15:34 -04:00
Paul Chiusano
d157abafaf regression test (currently failing) 2020-10-20 16:34:13 -04:00
Paul Chiusano
9bb592e21f popcount instruction, tests, and bugfixes 2020-10-19 17:56:51 -04:00
Paul Chiusano
2f46316d7f
Merge pull request #1726 from unisonweb/dx/transcript-error-reporting
Fix transcript runner to show the actual error when it fails
2020-10-13 15:51:52 -04:00
Paul Chiusano
13e1073251 output tweaks and regenerate transcripts 2020-10-13 09:44:49 -04:00
Stew O'Connor
d89acf879a Merge remote-tracking branch 'origin/trunk' into feature/utf8-bytes 2020-10-12 18:26:52 -07:00
Stew O'Connor
0b49f887e1 fix the transcripts for the fromUtf8 change 2020-10-10 18:11:11 -07:00
Paul Chiusano
de8086c9cf fix bug with variable name generation 2020-10-09 18:22:15 -04:00
Paul Chiusano
d872eca0c8 added transcript, but noticed that some hashes differ unexpectedly 2020-10-09 18:10:16 -04:00
Stew O'Connor
f55784b2a8 add a transcript for the new utf8 conversions 2020-10-09 09:44:22 -07:00
Paul Chiusano
9ed2a46310 Finish up transcript and tests 2020-10-07 11:21:15 -04:00
Paul Chiusano
65acd453b9 Merge remote-tracking branch 'origin/trunk' into topic/basic-hashing 2020-10-07 09:36:09 -04:00
Dan Doel
0a498a922c Add a test transcript for recursive dependencies 2020-10-06 17:45:19 -04:00
Paul Chiusano
238dfbe26c sync with master 2020-09-30 18:55:11 -04:00
Paul Chiusano
7de847ce0d Improved transcript docs and have pretty-printer avoid using the syntax for patterns that *contain* literals. Thanks @atacratic! 2020-09-30 18:03:54 -04:00
Chris Gibbs
37bcd95009 tweak interaction between destructuring bind and calculate imports (use insertion) 2020-09-30 22:16:47 +01:00
Paul Chiusano
23d06faa1f Add transcript 2020-09-28 13:09:55 -04:00
Dan Doel
4d1a0d1e4b Transcript updates 2020-09-22 13:31:25 -04:00
Dan Doel
45208bb4bf Transcript changes 2020-09-21 17:25:30 -04:00
Dan Doel
c7807253a5 Transcript changes for missing thread operations 2020-09-14 13:15:44 -04:00
Dan Doel
2c55c2b679 Commit transcripts that changed from MVar additions
- Added a note to the builtin document specifying that transcripts
  should be checked.
2020-09-03 15:40:50 -04:00
Dan Doel
67bf4aedfd Fix transcripts after IO naming fixups 2020-08-24 13:29:01 -04:00
Dan Doel
d555693423 Merge branch 'trunk' into wip/rt2 2020-08-19 10:59:08 -04:00
dolio
b58d222b22
Merge pull request #1649 from unisonweb/wip/rt2-patternp
merge topic/patternp into wip/rt2
2020-08-18 16:41:03 -04:00
Dan Doel
3091d34b34 Commit transcript changes for new builtins
- These were generated using the existing runtime
2020-08-18 15:16:52 -04:00
Runar Bjarnason
ed621377c4 Merge branch 'trunk' of github.com:unisonweb/unison into topic/nohistoricsearch 2020-08-11 21:39:10 -04:00
Runar Bjarnason
d9fc1dfdc5 Update transcript outputs 2020-08-11 21:35:29 -04:00
Joseph Thomas
82617d7816 Update transcript test to reflect new behaivor. 2020-07-26 18:38:03 -06:00
mergify[bot]
628c30058a
Merge pull request #1623 from unisonweb/topic/bug1574
Show names from merged namespace after merge
2020-06-19 23:02:38 +00:00
Runar Bjarnason
d492640856 Name conflict output is slightly different 2020-06-19 15:04:49 -04:00
Runar Bjarnason
db6c45b333 Update transcripts since links now auto-propagate 2020-06-19 00:38:17 -04:00
Runar Bjarnason
a71f25f071 Added a transcript 2020-05-29 13:36:43 -04:00
Runar Bjarnason
ce10585b12 Improve default metadata handling of "." 2020-05-28 23:27:36 -04:00
Runar Bjarnason
cbbd656443 Simplify path parsing 2020-05-28 22:45:27 -04:00
Runar Bjarnason
f57d208311 wip 2020-05-28 15:02:33 -04:00
Runar Bjarnason
3037ae5d74 Fix bug #689 2020-05-26 17:59:27 -04:00
Paul Chiusano
607f7daa9b Added transcript and fixed subtle bug 2020-05-21 00:19:41 -04:00
Arya Irani
5a30490bd3
Merge pull request #1543 from pt2121/pt/1408-numbered
Make dependents and dependencies commands produce numbered args.
2020-05-18 14:23:56 -04:00
Paul Chiusano
d00bbbbed6 Tweak output of merge history to not be upside down 2020-05-15 18:30:01 -04:00
Arya Irani
61fe5effa3
Merge branch 'master' into pt/1408-numbered 2020-05-15 17:37:24 -04:00
Prat T
9fe1c408a7
Link number from dependents and dependencies result to hash 2020-05-10 17:22:45 -07:00
Prat T
d4327b54c5
Make dependents and dependencies commands produce numbered args.
Format dependent and dependencies outputs
2020-05-09 15:50:52 -07:00
Runar Bjarnason
26ed291fdf Improved threeWayMerge, before, and less dead code 2020-05-07 17:03:39 -04:00
Paul Chiusano
86d817a3f3 Regenerate transcripts 2020-05-04 22:46:16 -04:00
Chris Gibbs
ba77022f20 remove stray extra argument from declaration of Nat.complement and Int.complement builtins 2020-04-26 14:22:10 +01:00
Paul Chiusano
b2171ec84a
Merge pull request #1456 from stew/bitwise-operations
Add more bitwise operations to Int/Nat
2020-04-23 14:55:24 -04:00
Runar Bjarnason
54e6aebbb5 Add a transcript 2020-04-23 13:43:47 -04:00
Stew O'Connor
fd7e23464e rerunning transcripts for new Int/Nat bitwise builtins 2020-04-22 14:48:49 -07:00
Arya Irani
193882e8d4
Merge pull request #1440 from pete-ts/suffixied-update-output
Suffixied `update` output
2020-04-20 23:22:13 -04:00
Arya Irani
1a9f021d99
Merge pull request #1428 from unisonweb/fix/decompile-bytes-fromList
`Bytes` values should decompile to `Bytes.fromList`, not `Bytes.fromSequence`
2020-04-20 23:00:47 -04:00
Runar Bjarnason
b605b46aeb Transcript output 2020-04-20 15:52:42 -04:00
Runar Bjarnason
1e8d9ee472 Merge branch 'master' of github.com:unisonweb/unison into topic/default-metadata 2020-04-20 14:03:40 -04:00
pete-ts
2e102fd5bb Updates transcript outputs with revised output 2020-04-20 16:01:42 +01:00
pete-ts
34b647fb7c Text literals can display non-ascii chars 2020-04-17 22:19:38 +01:00
Runar Bjarnason
45daaf8574 Regression test for #763 2020-04-15 16:43:42 -04:00
Stew O'Connor
636c86f6e7 Merge remote-tracking branch 'origin/master' into new-Int-operations 2020-04-14 16:17:36 -07:00
Stew O'Connor
076a594ca9 updated transcripts to include new pow/shiftRight/shiftLeft builtins 2020-04-14 14:20:12 -07:00