Commit Graph

1269 Commits

Author SHA1 Message Date
Arya Irani
14489cc2ed Merge remote-tracking branch 'origin/trunk' into topic/rehash-codebase
# Conflicts:
#	parser-typechecker/src/Unison/Codebase/Editor/HandleInput.hs
#	parser-typechecker/src/Unison/CommandLine/OutputMessages.hs
#	parser-typechecker/src/Unison/PrettyPrintEnv.hs
#	unison-src/transcripts/merges.output.md
#	unison-src/transcripts/reflog.output.md
#	unison-src/transcripts/squash.output.md
2021-11-11 12:06:00 -05:00
Dan Doel
e742dfb642 Guard against improper eta reductions
- The eta reducer was converting `x -> f x x` to `f x`
2021-11-10 17:35:27 -05:00
Chris Penner
e91e98f932 Add Transcripts for namespace-dependencies test 2021-11-10 15:41:42 -06:00
Mitchell Rosen
4d801bef4f update transcript 2021-11-10 15:31:42 -05:00
Mitchell Rosen
c9a772280c use unsuffixified PPE to print dependents 2021-11-09 14:44:32 -05:00
Mitchell Rosen
8a2a485683 update transcript 2021-11-09 13:44:23 -05:00
Paul Chiusano
cf174a507c actually add transcript 2021-11-08 17:37:21 -06:00
Chris Penner
c8fe85d75b Remove -- checks in io transcript 2021-11-04 14:44:00 -06:00
Chris Penner
be9afe31e3 Merge branch 'trunk' into run-with-args 2021-11-04 13:51:38 -06:00
Mitchell Rosen
1037eadd97
Merge pull request #2584 from shawn-bachlet/trunk
[Issue 1367]: Report a warning on empty diff.namespace
2021-11-03 17:33:19 -04:00
sbachlet
06275cd8c4 update transcripts 2021-11-03 15:17:13 -04:00
Paul Chiusano
9c143d6ecb
Merge pull request #2578 from unisonweb/cp/no-match-error
Fix `fzf` opening during transcript runs, also print "No matches" error on failed glob.
2021-11-03 10:29:01 -05:00
Arya Irani
4a7b0f5604 Merge remote-tracking branch 'origin/trunk' into topic/rehash-codebase
# Conflicts:
#	unison-core/src/Unison/Reference.hs
#	unison-core/src/Unison/Referent'.hs
2021-11-03 10:48:13 -04:00
mergify[bot]
2037e51d3b
Merge pull request #2586 from unisonweb/fix/universal-compare
Fixed some tags that were still 0 rather than reference packed
2021-11-02 21:16:47 +00:00
Dan Doel
8fb52bb7f4 Fixed some tags that were still 0 rather than reference packed 2021-11-02 16:56:50 -04:00
mergify[bot]
8e6dbb10a2
Merge pull request #2500 from unisonweb/fix/universal-compare
Add some special cases for universal compare
2021-11-02 15:53:12 +00:00
Dan Doel
dd5d720836 Rework universal comparison for Float 2021-11-02 11:33:52 -04:00
Arya Irani
2ed8e687ad Merge remote-tracking branch 'origin/trunk' into topic/rehash-codebase
# Conflicts:
#	codebase2/codebase-sqlite/unison-codebase-sqlite.cabal
#	codebase2/util/package.yaml
#	codebase2/util/unison-util.cabal
#	parser-typechecker/src/Unison/Codebase/Branch.hs
#	parser-typechecker/src/Unison/Codebase/Editor/HandleInput.hs
#	parser-typechecker/src/Unison/Codebase/Editor/Propagate.hs
#	parser-typechecker/src/Unison/Hashing/V2/Convert.hs
#	parser-typechecker/src/Unison/Hashing/V2/DataDeclaration.hs
#	parser-typechecker/src/Unison/Hashing/V2/Term.hs
#	parser-typechecker/src/Unison/Hashing/V2/Type.hs
#	unison-core/src/Unison/ABT.hs
#	unison-core/src/Unison/NamesWithHistory.hs
#	unison-core/src/Unison/Term.hs
#	unison-core/src/Unison/Type/Names.hs
2021-11-02 11:09:55 -04:00
Chris Penner
2ab9c0ceef Fix transcript errors caused by empty globbing (it triggered fzf) 2021-11-01 14:49:16 -06:00
Chris Penner
777a354d86 WIP 2021-11-01 14:42:38 -06:00
Sameer Kolhar
11cf92bd57 attempt to fix broken tests 2021-10-30 17:21:52 +02:00
mergify[bot]
c5b8d74682
Merge pull request #2562 from unisonweb/work/type-equality
Fix various ability checking issues
2021-10-28 22:34:19 +00:00
Dan Doel
627669dbec Add some tests 2021-10-28 17:45:51 -04:00
Dan Doel
14cf7dd31f Fix incorrect typing of handler aspects
- Handlers were being inferred with types like

    Request E r ->{E'} s

  where `E` is the exact list of abilities being handled in the
  patterns. This is inaccurate, because any other abilities in the
  handle block also pass through the handler.

- Further, each case:

    { eff ... -> k } -> ...

  was being checked with:

    k : o ->{E} r

  where `E` is _only_ the ability containing `eff`. Rather, it should be
  the entire row from the `Request` type, _including_ abilities that
  aren't handled in the cases being covered.
2021-10-28 16:51:58 -04:00
iamevn
e16aae7700 "codebase" arg needs double dash, update error message to match 2021-10-23 19:29:27 -07:00
iamevn
83d363f0e0 run within ucm handles -- similarly to the command line
-- is optional, the first one is filtered out from the argument list.

moved
2021-10-23 18:21:15 -07:00
iamevn
21539b337a stack exec transcripts 2021-10-23 10:10:57 -07:00
iamevn
d24627ff83 add tests for getArgs
tests need to be formatted differently because they need to be `run` instead of `io.test`ed
2021-10-23 10:10:57 -07:00
mergify[bot]
b8ed7414d0
Merge pull request #2535 from iamevn/getCurrentDirectory
fix getCurrentDirectory
2021-10-23 02:37:50 +00:00
iamevn
6f3870d5ea add test for getCurrentDirectory and getTempDirectory, add Evan to CONTRIBUTORS 2021-10-22 15:12:10 -07:00
Rúnar
8a4fea6e64 Fix off-by-one output 2021-10-22 15:29:02 -04:00
Rúnar
3442e1ff71 Run the transcripts 2021-10-22 15:02:20 -04:00
Rúnar
6ceaeb642b Merge branch 'trunk' of github.com:unisonweb/unison into topic/fix2271 2021-10-21 14:22:40 -04:00
Rúnar
e5e1c3c67c Fix 2271 2021-10-21 14:21:56 -04:00
mergify[bot]
d0cc0a50af
Merge pull request #2524 from unisonweb/fix/mvar-read
Fix calling convention on MVar read
2021-10-20 22:24:56 +00:00
Dan Doel
60b6943aed Fix implementation of MVar.tryPut
- It was declared as returning an `Either`, but it wasn't actually
  catching exceptions.
2021-10-20 18:07:54 -04:00
Dan Doel
b7b395b2c3 Fix calling convention on MVar read 2021-10-19 18:32:02 -04:00
Chris Penner
37389e0985 More transcripts 2021-10-18 18:52:01 -06:00
Chris Penner
c59f59047e Update globbing transcripts 2021-10-18 18:43:04 -06:00
Chris Penner
a2c0c90641 Add globbing transcript; however glob expansion isn't run by transcripts yet :'( 2021-10-18 08:50:21 -06:00
Arya Irani
d9cd5d914e Merge remote-tracking branch 'origin/trunk' into topic/remove-cycle-length
# Conflicts:
#	codebase2/codebase-sqlite/U/Codebase/Sqlite/Operations.hs
#	parser-typechecker/src/Unison/Codebase/SqliteCodebase.hs
#	parser-typechecker/src/Unison/Codebase/SqliteCodebase/Conversions.hs
#	parser-typechecker/src/Unison/Hashing/V1/Convert.hs
#	parser-typechecker/src/Unison/Hashing/V1/DataDeclaration.hs
#	parser-typechecker/src/Unison/Hashing/V1/Pattern.hs
#	parser-typechecker/src/Unison/Hashing/V1/Reference.hs
#	parser-typechecker/src/Unison/Hashing/V1/Reference/Util.hs
#	parser-typechecker/src/Unison/Hashing/V1/Referent.hs
#	parser-typechecker/src/Unison/Hashing/V1/Term.hs
#	parser-typechecker/src/Unison/Hashing/V1/Type.hs
#	parser-typechecker/src/Unison/Hashing/V2/Reference.hs
#	parser-typechecker/src/Unison/Hashing/V2/Term.hs
#	parser-typechecker/src/Unison/Hashing/V2/Type.hs
#	parser-typechecker/src/Unison/Runtime/ANF/Serialize.hs
#	parser-typechecker/unison-parser-typechecker.cabal
#	unison-core/src/Unison/DataDeclaration.hs
#	unison-core/src/Unison/Reference.hs
#	unison-core/unison-core1.cabal
2021-10-14 21:26:56 -04:00
Dan Doel
e4b974cac2 Add tests for compare corner cases 2021-10-14 17:40:23 -04:00
Chris Penner
16d739ca5c Update transcripts 2021-10-07 14:43:08 -06:00
Chris Penner
511089bf4f Update transcripts and No Matches error 2021-10-07 11:04:06 -06:00
Chris Penner
8e5e74d748 Merge branch 'trunk' into cp/2453-better-ambiguity-message 2021-10-07 10:29:28 -06:00
Chris Penner
b134e483b8 Use table output for resolution failures 2021-10-07 10:21:47 -06:00
Arya Irani
8f61aa3cf2 Merge remote-tracking branch 'origin/trunk' into topic/refactor-type-mentions-index
# Conflicts:
#	codebase2/util/U/Util/Relation.hs
#	codebase2/util/unison-util.cabal
2021-10-07 00:31:40 -04:00
Chris Penner
f988165289 First draft of a transcript, not working as intended yet 2021-10-06 17:07:58 -06:00
Chris Penner
4e62c69c6d Add resolution-failures transcript 2021-10-06 16:56:56 -06:00
Arya Irani
37115f790e tweak transcript 2021-10-06 18:06:21 -04:00
Arya Irani
853241102c fix a bug in HandleInput where find-by-type fails when the only exact matches are unnamed builtins 2021-10-06 17:50:35 -04:00
Rúnar
b1405465b0 Actually fix it 2021-10-06 15:02:19 -04:00
Rúnar
27cda8332d Merge branch 'trunk' of github.com:unisonweb/unison into topic/letbreak 2021-10-06 10:25:25 -04:00
Paul Chiusano
2c2bcebd5a
Merge pull request #2458 from unisonweb/dont-diff-in-add
Improve the performance of `add` with default metadata
2021-10-05 17:44:22 -05:00
Mitchell Rosen
ce59c42d60 update transcript output 2021-10-05 16:24:53 -04:00
Arya Irani
92aeb3a98e Merge remote-tracking branch 'origin/trunk' into topic/remove-cycle-length
# Conflicts:
#	unison-src/transcripts/merges.output.md
#	unison-src/transcripts/reflog.output.md
#	unison-src/transcripts/squash.output.md
2021-10-04 20:23:40 -04:00
Arya Irani
4110fe501f updated hashes in transcripts 2021-10-04 20:10:36 -04:00
Paul Chiusano
507fc0957e refresh transcripts 2021-10-04 13:28:55 -05:00
Paul Chiusano
f4188390ca Merge remote-tracking branch 'origin/trunk' into feature/compress
# Conflicts:
#	unison-src/transcripts/alias-many.output.md
#	unison-src/transcripts/emptyCodebase.output.md
#	unison-src/transcripts/merges.output.md
#	unison-src/transcripts/reflog.output.md
#	unison-src/transcripts/squash.output.md
2021-10-04 13:21:31 -05:00
Rúnar
f648c1fcff Special-case 'let after equals sign 2021-10-01 14:14:55 -04:00
Arya Irani
83b0af4d2f Merge remote-tracking branch 'origin/trunk' into topic/remove-cycle-length
# Conflicts:
#	unison-src/transcripts/merges.output.md
#	unison-src/transcripts/reflog.output.md
#	unison-src/transcripts/squash.output.md
2021-09-27 19:51:38 -04:00
Arya Irani
31f9f56b30 update transcript output 2021-09-27 17:25:23 -04:00
Alvaro Carrasco
fc78cc1899 Fix type of ##IO.systemTimeMicroseconds 2021-09-25 14:01:21 -06:00
Alvaro Carrasco
1e5a509931 Renamed to systemTimeMicroseconds and updated transcripts 2021-09-25 11:29:57 -06:00
Rúnar
2a27e55c6f Determine if a delayed term is a block 2021-09-24 14:27:00 -04:00
Rúnar
4b859d6d91 Add parens around let blocks, fix type parser 2021-09-23 15:22:32 -04:00
Rúnar
9831f5ae86 Merge branch 'trunk' of github.com:unisonweb/unison into topic/letblockparen 2021-09-22 21:24:13 -04:00
Cody Allen
1f0cf09c85
Merge branch 'trunk' into remote-support 2021-09-22 14:15:00 -07:00
Rúnar
49ea7731fd Changes to doc basic formatting syntax.
* Allow ~~ to contain ~
* Make ** bold and __ italic
2021-09-22 15:23:53 -04:00
Rúnar
bce149eca5 Add failing test 2021-09-22 12:20:56 -04:00
Rúnar
7745fbba4b Fix emphasis roundtrip in docs 2021-09-22 11:07:29 -04:00
Dan Doel
bcdb0d551b Transcript updates
- Added some codeops tests using the new validate
- Updated other transcript output for new builtins
2021-09-21 17:46:00 -04:00
mergify[bot]
88cebf7847
Merge pull request #2415 from unisonweb/topic/listblocks
Allow blocks to appear as elements in lists and tuples
2021-09-17 19:40:00 +00:00
Simon Højberg
16201809f5 Fix records to print with fieldnames
We were attempting to determine a type being a records, by looking
number of accessors and seeing if they matched a freshly generated
number of them. This was not working as we too eagerly removed type
prefixed names thus causing a mismatch.
2021-09-17 14:39:23 -04:00
Simon Højberg
d6ae87716b Add transcript for records pretty printing 2021-09-17 13:26:04 -04:00
Paul Chiusano
eb46a884b3 added extra test of more corner cases 2021-09-17 08:24:37 -05:00
Rúnar
be3b9919ec Fix up types and corner cases 2021-09-16 22:35:15 -04:00
Rúnar
a6abc66b3f Add block closes to list and tuple commas 2021-09-16 14:08:45 -04:00
Stew O'Connor
71c816e712 Merge remote-tracking branch 'origin/trunk' into feature/any-extract 2021-09-16 09:02:30 -07:00
Rúnar
bcde3031c4 wip 2021-09-15 21:26:39 -04:00
mergify[bot]
0390dfbadf
Merge pull request #2399 from unisonweb/topic/longbinaryops
Fix linebreaking in long binary op chains
2021-09-11 09:27:04 +00:00
Rúnar
0273083cb7 Update transcript output 2021-09-11 05:08:16 -04:00
Rúnar
3da39fd16d Change tabulation of binary operators 2021-09-10 21:15:24 -04:00
Mike (stew) O'Connor
eaa56344ac
Merge pull request #2387 from stew/feature/termlinktotext
add builtin Term.Link.toText
2021-09-10 15:57:08 -07:00
Stew O'Connor
b7fc6c6f5d add a Any.unsafeExtrace builtin 2021-09-10 13:49:15 -07:00
Stew O'Connor
bcba5e7ac7 updated transcripts 2021-09-10 12:58:02 -07:00
Rúnar
53a9a4650b Fix linebreaking in long binary op chains 2021-09-10 15:26:49 -04:00
Stew O'Connor
2decef34ab missed one? 2021-09-10 11:48:52 -07:00
Stew O'Connor
66f32ce007 update transcript output 2021-09-10 10:40:23 -07:00
Rúnar
65dec27bbd Add parens around effectful arrow special case. 2021-09-09 14:00:13 -04:00
Rúnar
63cde3a485 Change precedence of list patterns 2021-09-09 11:02:24 -04:00
mergify[bot]
b72a25cb01
Merge pull request #2390 from unisonweb/topic/destructuringbindparens
Add parens to destructuring binds
2021-09-09 03:14:35 +00:00
Rúnar
d9d1d4b91c Add parens to destructuring binds 2021-09-08 21:59:01 -04:00
Paul Chiusano
d1a7692c40 Fix with @dolio to pattern matching on constructors with polymorphic fields
Added some more tests
2021-09-08 12:01:40 -05:00
Paul Chiusano
2ab39a2ac4 Tweak to allow CI to pass
It now runs the test but doesn't care if the output has changed
2021-09-07 14:37:24 -05:00
Paul Chiusano
a5dae2dc60 forgot to add the .u file 2021-09-07 14:15:30 -05:00
Paul Chiusano
7cdc022993 Testing harness for round-trip parsing/pretty-printing testing 2021-09-07 13:57:34 -05:00
Rúnar
63bc75ea34
Merge pull request #2382 from unisonweb/fix/2353
Fix to subtle name resolution bug that results in using TDNR unexpectedly
2021-09-07 10:08:41 -04:00
mergify[bot]
cd440abe2a
Merge pull request #2380 from unisonweb/fix/2378
Fix some order dependence in `pruneAbilities`
2021-09-03 15:27:25 +00:00
Paul Chiusano
7ea5b8b960 Fix #2353 2021-09-02 18:55:27 -05:00
Dan Doel
a5b978daab Fix some order dependence in pruneAbilities
- Previously the results could depend on the order that wanted abilities
  were tested against provided abilities. The new approach runs until a
  fixed point is reached, allowing some unifications on concrete
  abilities to better inform the overall process.
2021-09-02 16:35:13 -04:00
Stew O'Connor
7574ce3c32 add regression tests 2021-09-01 17:34:19 -07:00
Paul Chiusano
ff90ab5490
Merge pull request #2372 from unisonweb/fix/delay
Fix `delay.impl` calling convention
2021-08-31 16:01:31 -05:00
Dan Doel
cdb4fe9326 Missed transcript base changes 2021-08-31 15:25:24 -04:00
Dan Doel
11103673b6 Fix calling convention of delay.impl 2021-08-31 15:24:37 -04:00
Arya Irani
c41795ae0b
Merge pull request #2369 from unisonweb/test/unlink
Improve testing of link/unlink
2021-08-31 13:37:21 -04:00
Paul Chiusano
e32b2b0057 Improve testing of link/unlink
Adds a check for links by type, and a check for unlink
2021-08-31 11:15:35 -05:00
mergify[bot]
2b21eb4093
Merge pull request #2364 from unisonweb/fix/2355
Avoid a loop caused by inferring cyclic abilities
2021-08-31 15:36:12 +00:00
Dan Doel
9d7278df72 Fix stale transcript output 2021-08-31 11:17:11 -04:00
Arya Irani
a2e5895d95 not sure where this came from 2021-08-30 20:50:14 -04:00
Dan Doel
594264bb30 Avoid a loop caused by inferring cyclic abilities 2021-08-30 17:25:30 -04:00
Dan Doel
2286d20c41 Add a test case 2021-08-26 16:02:16 -04:00
rlmark
0b2053ae8f Merge branch 'trunk' into structural-kw#2251 2021-08-24 20:46:57 -07:00
rlmark
b2cd7153d3 weird extra character???? 2021-08-24 13:38:02 -07:00
rlmark
726a171b68 typo fix + slight output changes 2021-08-24 13:04:58 -07:00
rlmark
4001b911a1 adds transcript test for structural/unique modifier 2021-08-24 11:43:40 -07:00
rlmark
ac2bc29849 fixes tests and transcripts 2021-08-24 11:33:27 -07:00
Paul Chiusano
52a906441f refresh transcripts 2021-08-24 12:56:51 -05:00
Paul Chiusano
0282210841 Merge remote-tracking branch 'origin/trunk' into feature/compress
# Conflicts:
#	unison-src/transcripts/alias-many.output.md
#	unison-src/transcripts/emptyCodebase.output.md
#	unison-src/transcripts/merges.output.md
#	unison-src/transcripts/reflog.output.md
#	unison-src/transcripts/squash.output.md
2021-08-24 11:57:35 -05:00
Dan Doel
bdd222a086 Transcripts
- Includes a new test transcript for ref usage
2021-08-24 12:20:23 -04:00
rlmark
5da63ec4f1 fixes doubleSpace issue 2021-08-23 14:09:27 -07:00
rlmark
79ad0fa8df updates transcripts 2021-08-23 14:05:37 -07:00
Dan Doel
a6d2c29200 Merge branch 'trunk' into topic/unsafe-coerce 2021-08-20 17:09:25 -04:00
Dan Doel
257ae66989 Add unsafe.coerceAbilities builtin 2021-08-20 14:50:05 -04:00
Paul Chiusano
53b513c88d
Merge pull request #2336 from stew/feature/2313
add toRepresentation / fromRepresentation for Float Int
2021-08-20 08:01:18 -05:00
Dan Doel
aa92941db8 Added a transcript showing retained ability variables 2021-08-19 16:46:50 -04:00
Stew O'Connor
1a0bf3c09f rerun transcripts 2021-08-19 08:23:41 -07:00
Stew O'Connor
553c5d9b13 add toRepresentation / fromRepresentation for Float Int
The new functions do bitwise coersion to and from Nat

fixes: #2313
2021-08-18 16:21:38 -07:00
Dan Doel
3c06cfe158 Fix an issue pattern matching on multiple builtins
- Default cases were not propagated into specific case branches as they
  should have been.
2021-08-18 17:54:43 -04:00
Paul Chiusano
26338d89df compression builtins 2021-08-13 20:10:44 -05:00
Paul Chiusano
4bddd67a46
Merge pull request #2303 from sullyj3/diffWithCurrentNamespace
Add single argument form of diff.namespace
2021-08-11 09:44:57 -04:00
Dan Doel
0d4c6fdb03 Fix a TDNR case for non-function effect references 2021-08-10 14:10:46 -04:00
James Sully
9a9f94f96c Add single '.' to diff.namespace test that I just spent too long debugging 2021-08-09 18:06:43 +10:00
James Sully
36719e6dac Add a failing test for single argument form of diff.namespace
The output for

```
.b2> diff.namespace .b1
```

should be the same as the output for

```
.> diff.namespace b1 b2
```

What the heck?
2021-08-09 17:00:00 +10:00
Paul Chiusano
408d4174c8
Merge pull request #2300 from unisonweb/fix/2297
Expand abilitiy lists in `coalesceWanted`
2021-08-06 19:27:09 -04:00
Dan Doel
db7a256662 Perform expansions in coalesceWanted
- Failing to expand the lists was resulting in some odd behavior with
  dropped ability requirements.
2021-08-06 16:23:16 -04:00
Dan Doel
36bf6a6dc9 Add a failing transcript 2021-08-06 11:28:08 -04:00
Dan Doel
fc5b8b86ef Disallow floating point patterns, with an informative error 2021-08-05 18:00:50 -04:00
Arya Irani
a591f91e21
Merge pull request #2274 from unisonweb/test/mergetests
Added more testing for merge command
2021-08-05 08:54:26 -07:00
Paul Chiusano
c652d9d125 Merge remote-tracking branch 'origin/trunk' into fix/2133
# Conflicts:
#	unison-src/transcripts/alias-many.output.md
2021-08-05 10:28:23 -04:00
Paul Chiusano
a7e6374c53
Merge pull request #2278 from stew/feature/natsAndByte
WIP: add functions for converting Nats and Bytes with multiple word sizes
2021-08-05 10:22:09 -04:00
Paul Chiusano
a52e298669 improve transcript for suffix based resolution to test shadowing behavior 2021-08-04 14:26:13 -04:00
Stew O'Connor
af9049f4c2 fix output of transcript 2021-08-04 09:37:29 -07:00
Paul Chiusano
93dc3fa35c refresh transcript 2021-08-04 12:10:48 -04:00
Paul Chiusano
2d1b85e89f Merge remote-tracking branch 'origin/trunk' into fix/2133 2021-08-04 12:07:50 -04:00
Paul Chiusano
d67b99095a Add transcript demonstrating name selection algorithm 2021-08-04 11:17:11 -04:00
Paul Chiusano
5bc719944e Fix wildcard imports regression and re-add test for it 2021-08-04 10:42:35 -04:00
Dan Doel
9b999f2896 Avoid another variable-renaming let case 2021-08-04 10:31:54 -04:00
Stew O'Connor
0abb003be5 transcript for nat encoding / decoding now working and tidy 2021-08-03 22:31:47 -07:00
Paul Chiusano
cbd597e55e Merge remote-tracking branch 'origin/trunk' into fix/2133 2021-08-03 22:16:03 -04:00
Stew O'Connor
e40aeee5d3 fix algos add a transcript that fails like a lot of others 2021-08-02 22:29:10 -07:00
Stew O'Connor
988ab694a1 Merge remote-tracking branch 'origin/trunk' into feature/natsAndByte 2021-08-02 20:56:21 -07:00
Paul Chiusano
04dc85170b check in some uncontroversial transcript diffs 2021-08-02 23:05:36 -04:00
Paul Chiusano
f124a28cf0
Merge pull request #2284 from unisonweb/fix/2231
Type checker improvements to avoid ambiguous ability variable collections
2021-08-02 22:10:17 -04:00
Paul Chiusano
3857b896f6
Merge pull request #2273 from unisonweb/fix/misc
Assorted fixes
2021-08-02 22:05:03 -04:00
Dan Doel
c21d06b107 Add transcript with regression tests 2021-08-02 16:44:58 -04:00
Paul Chiusano
eee6f0ff0a uncontroversial transcript diffs 2021-08-02 11:55:27 -04:00
Paul Chiusano
39431a401d Introduce Alphabetical typeclass - alphabetical ordering for humans
Previously, we were very sloppy, sometimes using the Ord instance for things displayed to humans, when that is only sometimes kinda sorta what you want. Separating this out into its own class lets us be careful about this and handle it uniformly.
2021-08-02 11:11:22 -04:00
Paul Chiusano
41b8068b43 Fix name comparison to take into account absolute names
Transcripts all pass, but have a lot of diffs that I need to investigate
2021-08-01 17:49:24 -04:00
Stew O'Connor
4d078b24b9 make encoding more efficient. fix the calling convention 2021-07-30 22:08:48 -07:00
Dan Doel
e12334fd64 Fix mvar transcript
- Also add output
2021-07-29 12:31:23 -04:00
Dan Doel
46ee8b9295 Move mvar.md back to valid transcripts 2021-07-29 12:30:25 -04:00
Dan Doel
bc4b6ceb25 Add some tryRead tests 2021-07-29 11:08:12 -04:00
Paul Chiusano
fef01c906c Added more tests for merge 2021-07-28 23:06:32 -04:00
mergify[bot]
481a340636
Merge pull request #2259 from unisonweb/fix/2254
Allow constructor replacement during update propagation
2021-07-28 20:49:49 +00:00
Paul Chiusano
7b7801f8ae Merge remote-tracking branch 'origin/trunk' into topic/getLine
# Conflicts:
#	unison-src/transcripts/alias-many.output.md
#	unison-src/transcripts/builtins-merge.output.md
#	unison-src/transcripts/emptyCodebase.output.md
#	unison-src/transcripts/merges.output.md
#	unison-src/transcripts/reflog.output.md
#	unison-src/transcripts/squash.output.md
2021-07-27 20:58:40 -04:00
Dan Doel
5f6b09416c Merge branch 'trunk' into feature/exceptions 2021-07-26 15:35:42 -04:00
Dan Doel
6a0eeab33e Improve unhandled exception message 2021-07-26 14:43:37 -04:00
Rúnar
249bf3ba25 Merge branch 'trunk' of github.com:unisonweb/unison into topic/getLine 2021-07-23 22:25:01 -04:00
Rúnar
e1e4174981 Merge branch 'trunk' of github.com:unisonweb/unison into topic/getline 2021-07-23 14:43:39 -04:00
Paul Chiusano
6695f7a9c9 comment transcript 2021-07-23 11:46:51 -04:00
Paul Chiusano
b52d80c8dd Merge remote-tracking branch 'origin/trunk' into fix/2254 2021-07-23 11:31:11 -04:00
Paul Chiusano
cd891309c7 HUZZAH!!! Works now. 2021-07-23 11:24:41 -04:00
Paul Chiusano
945203568c Add failing case to transcript 2021-07-23 10:47:48 -04:00
Paul Chiusano
8734c41948 using the root namespace now to do constructor mapping
this is much less hacky and should work as long as the namespace is forked before doing the update
2021-07-23 10:28:15 -04:00
Paul Chiusano
33ee9f54a3 Add test showing that this approach is doomed to not work, since the V2 format has no constructor names in decls 2021-07-22 18:30:25 -04:00
Paul Chiusano
074f4bbdce Moar tests 2021-07-22 17:03:56 -04:00
Paul Chiusano
e1759c6839 added some more tests 2021-07-22 16:52:39 -04:00
Dan Doel
13c02b4117 Fix up top level exception handler implementation
- The 'pure' case was implemented incorrectly
- Also fixed the implementation of putBytes, it was giving back a 'unit'
  value that was actually a handle.
2021-07-22 12:54:36 -04:00
Paul Chiusano
200bd1c964 add a record refactoring example to transcript 2021-07-21 23:33:47 -04:00
Paul Chiusano
ba800c8a2a wip 2021-07-21 19:21:56 -04:00
Paul Chiusano
2ab861e5e3 fix metadata updating 2021-07-21 17:55:43 -04:00
Paul Chiusano
3ead11235e WIP on elaborated patch application 2021-07-21 17:20:05 -04:00
Paul Chiusano
312993d1d8 Adding some debug stuff 2021-07-21 12:43:55 -04:00
Paul Chiusano
8a90cad7ef I think due to additional propagation, old types are removed from the namespace
Refreshing transcript
2021-07-21 12:01:25 -04:00
Paul Chiusano
45de1ad2ed WORKS!! 2021-07-21 11:35:54 -04:00
Paul Chiusano
c068673a0c update transcript after fixing todo output to properly fail transcripts 2021-07-20 17:53:19 -04:00
Paul Chiusano
e432d3b699 Add regression test 2021-07-20 17:41:59 -04:00
Stew O'Connor
1bb4bfbfb3 Add a getEnv IO function which fetch environment variables 2021-07-20 13:56:09 -07:00
Paul Chiusano
e74399a562 added some comments and removed extra space of indentation 2021-07-20 01:03:15 -04:00
Paul Chiusano
c0252b03c6 moar tests 2021-07-20 00:50:16 -04:00
Paul Chiusano
168afdc0ee update pretty-printer to use multi-guard syntax and improve tests 2021-07-20 00:45:03 -04:00
Paul Chiusano
f31f89085e make AbsN a complete pattern 2021-07-20 00:44:26 -04:00
Paul Chiusano
eb489a2bca Allow multiple guards to be attached to a case in the parser 2021-07-19 17:56:36 -04:00
Paul Chiusano
e190567d8f update the second example in the transcript to fail for the right reasons 2021-07-16 12:20:46 -04:00
Paul Chiusano
4fe34d4001 Fix, transcript now passes 2021-07-16 11:57:05 -04:00
Paul Chiusano
7365c5aa79 added failing regression test 2021-07-16 11:46:13 -04:00
Paul Chiusano
913a82abfc Merge remote-tracking branch 'origin/trunk' into feature/2112 2021-07-15 18:09:33 -04:00
Rúnar
0b879846e2 Add a test 2021-07-15 11:02:49 -04:00
Paul Chiusano
a2995c70dd refresh transcripts 2021-07-13 22:26:56 -04:00