Commit Graph

335 Commits

Author SHA1 Message Date
Paul Chiusano
6ac56a68db Clean up transcript so it's easier to follow and add more verbiage 2021-05-26 08:22:50 -05:00
Paul Chiusano
a0de0be3c9 Regression test 2021-05-26 08:10:50 -05:00
Paul Chiusano
17e9fb0868 Update transcript that was using doc syntax for regression test 2021-05-25 13:58:19 -05:00
Rúnar
e86d0f1f62 Fix up transcript output 2021-05-24 22:04:43 -04:00
Paul Chiusano
b860c4bfc6 Add short-circuiting for squash
This fixes the fix2000.md transcript
2021-05-24 21:51:26 -04:00
Rúnar
9e10dbedc6 Empty nodes don't count as LCA 2021-05-24 21:50:32 -04:00
Rúnar
58511d4cff Add transcript to check squash is same as merge 2021-05-24 21:50:32 -04:00
Rúnar
a3918e6535 Update transcript output due to new builtins 2021-05-19 22:33:51 -04:00
Paul Chiusano
ebdcf6c413 Use codebase LCA for squashing and improve transcript 2021-05-18 12:04:21 -05:00
Paul Chiusano
13ef0a0ca9
Merge pull request #1957 from unisonweb/fix/1940
Fix some runtime problems
2021-05-14 17:25:04 -05:00
Dan Doel
e53f5f0ae7 Add transcript output. 2021-05-14 17:36:28 -04:00
Paul Chiusano
5d9fe5cade Adding failing transcript showing decompilation problem 2021-05-12 13:46:45 -05:00
Paul Chiusano
ca951f36db
Merge pull request #1937 from unisonweb/fix/patterns
Fix some pattern compilation issues
2021-05-12 12:04:16 -05:00
Dan Doel
4a31323811 Add some matching tests 2021-05-12 11:35:33 -04:00
Paul Chiusano
461587b799
Merge pull request #1927 from unisonweb/feature/1912
Add @typecheck block for including code snippets that are typechecked but not evaluated
2021-05-11 12:01:11 -05:00
Paul Chiusano
c3f19939a4 simplify transcript 2021-05-10 16:10:13 -05:00
Paul Chiusano
c83a38aff5 Add regression test 2021-05-10 16:04:58 -05:00
Paul Chiusano
4ce85400d5 Block examples (not working yet) 2021-05-10 10:58:19 -05:00
mergify[bot]
ca7b32d1ca
Merge pull request #1909 from unisonweb/fix/1890
Stop using old `io.Mode` and `io.BufferMode` types in favor of versions in `io2` package
2021-05-07 18:55:22 +00:00
Paul Chiusano
160e0076e5 Revert "Bump version number of openFile, getBuffering, setBuffering"
This reverts commit 71e8495264.
2021-05-07 10:57:04 -05:00
Paul Chiusano
71e8495264 Bump version number of openFile, getBuffering, setBuffering 2021-05-06 18:51:48 -05:00
Dan Doel
3a2254b96e Transcript updates 2021-05-06 16:21:00 -04:00
Paul Chiusano
d95ffb1081 Improve transcript to exercise getBuffering as well 2021-05-05 13:06:17 -05:00
Paul Chiusano
4057c9b645 Add failing test that exercises the various file and buffering modes 2021-05-05 12:57:38 -05:00
Arya Irani
d073384295 add schema_version, commit flag, causal_metadata 2021-05-04 11:35:11 -06:00
Paul Chiusano
6a4e582680 Fix #1800 and improve testing
Also using suffixed names now for the BadMainType error message
2021-04-27 21:29:38 -05:00
Paul Chiusano
8d6c3595a6 Regression test transcript 2021-04-27 20:48:50 -05:00
Mitchell Rosen
7b43d6ada6 remove printLine from diff.md transcript because it no longer exists 2021-04-25 20:30:25 -04:00
Mitchell Rosen
b4594fb489 Update emptyCodebase.output.md 2021-04-21 21:47:13 -04:00
Mitchell Rosen
e59b8034b5 regenerate transcript output 2021-04-18 12:53:57 -04:00
Paul Chiusano
73b9eb1424 Text alignment functions are no longer builtin 2021-04-14 15:29:49 -05:00
Paul Chiusano
7e48c4e73b Fixed regression caused by a missing call to eval
Docs need to be eval'd before being displayed
2021-04-08 22:15:24 -05:00
Paul Chiusano
6181733dcb error message cleanup
whenever showing two mismatched types, ensure they are left aligned for easy visual comparison
2021-04-08 00:24:00 -05:00
Paul Chiusano
79fff8523e refresh transcripts 2021-04-07 23:53:48 -05:00
Paul Chiusano
9271749a04 Pull base.u out into its own file rather than embedding in the transcript 2021-03-31 20:44:01 -05:00
Dan Doel
fac5949472 Create an old runtime transcript directory
- There is just one transcript that requires the old runtime, but it
  interferes with the ability to run transcripts on the new runtime.
2021-03-18 14:39:21 -04:00
Dan Doel
eba054fd87 Add a test case for #1844 2021-03-18 12:48:09 -04:00
Sam Roberts
fca1a59201 minor update to run transcript 2021-03-11 10:44:23 -05:00
Arya Irani
666919b87b
Merge pull request #1814 from samgqroberts/1747.run-type-error-message
provide more helpful error message when `run`ning an improperly-typed term
2021-02-25 16:35:21 -05:00
Stew O'Connor
d3bc3df9b4 Merge remote-tracking branch 'origin/trunk' into feature/nice-IO-names 2021-02-25 01:25:59 -08:00
Stew O'Connor
1c443459ea Treat transcripts starting with _ as prelude 2021-02-25 00:47:23 -08:00
Arya Irani
2a5654dae5 switch Free.foldWithIndex for StateT Int in HandleCommand
closes #1816
2021-02-17 22:42:52 -05:00
Stew O'Connor
2f01c8ca37 we dont need this in IOSource either 2021-02-17 13:00:36 -08:00
Stew O'Connor
2dddd9e42d we're not going to add the nice names to IOSource, but to base 2021-02-17 12:21:01 -08:00
Sam Roberts
8cb0b20615 provide more helpful error message running term with bad type 2021-02-16 12:22:02 -05:00
Arya Irani
ffd76ce020 clean up transcripts 2021-02-10 22:41:36 -05:00
Arya Irani
d87182f855 add isPropagated/isTest to init & builtins.merge 2021-02-10 22:19:09 -05:00
Scott Christopher
72f1e3754f Fix delete.term-replacement to support coinciding type and term names
Resolves #1804

Removes names from `hqNameQuery` misses in `doRemoveReplacement` when the relevant type or term exists in both.
2021-02-10 22:21:17 +10:30
Stew O'Connor
4b7f49a688 Make IO functions that throw exceptions
closes: 1796

This adds two new abilities into IOSource.hs

    ability Throw e where
      throw: e -> x

    ability Exception where
      raise Failure -> x

All of the builtin functions which return an `Either Failure a` have
been renamed from `foo` to `foo.impl`, and for each of these functions
we implement a new function named `foo` in `IOSource.hs` which wraps
the `.impl` and `raises` a Failure using tyhe above `Exception`
ability.

Since we already have a Exception in `.base`, which should likely
coordinate this PR with one to the base repo which removes `Exception`
and `Either.toExcetpion`
2021-02-01 14:10:22 -08:00
Stew O'Connor
6a5230ffc7 get rid of unneded constructors 2021-02-01 00:12:11 -08:00