Commit Graph

455 Commits

Author SHA1 Message Date
Chris Penner
e9c92e295e Merge remote-tracking branch 'origin/trunk' into cp/rewrite-slurping 2022-02-17 10:14:45 -06:00
Chris Penner
3d3076368f Merge branch 'trunk' into cp/rewrite-slurping 2022-02-11 10:59:43 -06:00
Mitchell Rosen
f430921b12 ⅄ trunk → topic/rehash-codebase 2022-01-24 12:43:11 -05:00
mergify[bot]
3336bbbb43
Merge pull request #2819 from nprindle/np/fix-boolean-operator-hanging
Fix incorrect hanging of boolean operators, and elide extra parentheses
2022-01-21 22:00:27 +00:00
Paul Chiusano
942b228559
Merge pull request #2809 from unisonweb/topic/fix2796
Special-case overapplied binary operators
2022-01-21 11:39:23 -06:00
Chris Penner
6db90f043f Check explicitly on types & terms for slurp components 2022-01-20 17:17:04 -06:00
Chris Penner
1346489fe9 WIP 2022-01-20 14:45:23 -06:00
Nicole Prindle
e07b0cdcd2
Fix hanging of &&/||, and elide extra parentheses
Previously, breaking a long line with an `&&` or `||` would naively
incorrectly print without indentation, like this:
```
("a long piece of text to force unison to hang the line" == "")
&&
("a long piece of text to force unison to hang the line" == "")
```
This is a syntax error. The pretty-printer now correctly hangs the line
as
```
("a long piece of text to force unison to hang the line" == "")
  && ("a long piece of text to force unison to hang the line" == "")
```

Additionally, subsequent chains of `&&` and `||` have too-restrictive
parenthesis rules, so `a && b && c` will be printed as `(a && b) && c`.
Now, the pretty-printer will search for a chain of `&&`s or `||`s and
render it without extra parens. For clarity, parentheses are kept when
`&&` and `||` are mixed.
2022-01-19 15:38:10 -05:00
Chris Penner
8b6dba2b5f Don't crash on empty namespace prefix for constructors. 2022-01-18 10:07:50 -06:00
Rúnar
7454cd08b7 Special-case overapplied binary operators 2022-01-14 15:20:35 -05:00
Mitchell Rosen
dfd8cdf1e9 fix quadratic hashing in hashComponent 2022-01-13 11:36:28 -05:00
Chris Penner
8ddc77d4bd
Merge branch 'topic/rehash-codebase' into topic/rehash-codebase-salted-hash 2022-01-06 13:47:28 -06:00
Chris Penner
2ceafbec9f
Merge branch 'topic/rehash-codebase' into topic/rehash-codebase-reexport-hash 2022-01-06 13:34:46 -06:00
Chris Penner
d495d8f939
Improve type-safety of reference suffix parsing (#2776) 2022-01-06 10:28:26 -06:00
Mitchell Rosen
1edf417863 Bugfix: make hashing effects order-independent
Previously, terms that are identical other than the order a set of
effects is listed hashed differently. The following two terms should
have the same hash, and now they do.

  foo : Nat ->{Exception, IO} Nat
  bar : Nat ->{IO, Exception} Nat
2021-12-22 11:27:04 -08:00
Chris Penner
a438f84f1a More docs 2021-12-17 14:51:44 -06:00
Mitchell Rosen
401d279f14 ⅄ trunk → 21-12-08-monomorphize-var 2021-12-15 14:40:57 -05:00
Mitchell Rosen
84520a8ef1 ⅄ topic/rehash-codebase → topic/rehash-codebase-reexport-hash 2021-12-15 12:08:55 -05:00
Chris Penner
9c225cb08d Merge branch 'trunk' into topic/rehash-codebase-merge-trunk 2021-12-14 12:40:18 -06:00
Mitchell Rosen
ecd4902623 add comment 2021-12-09 12:59:06 -05:00
Mitchell Rosen
663f633c94 monomorphize builtinDataDecls 2021-12-08 22:20:58 -05:00
Mitchell Rosen
0ae88ea47b optimize Names.contains 2021-12-08 19:27:32 -05:00
Arya Irani
dcaa9f280e remove Unison.Hashable.Hashable1 2021-12-03 13:19:49 -10:00
Arya Irani
5ded801392 Merge remote-tracking branch 'origin/topic/rehash-codebase' into topic/rehash-codebase-reexport-hash
# Conflicts:
#	parser-typechecker/src/Unison/Codebase/Branch.hs
#	parser-typechecker/src/Unison/Hashing/V2/Convert.hs
2021-12-03 11:33:15 -10:00
Chris Penner
c69048e5e3 Merge branch 'trunk' into cp/order-branch-modifications-1552 2021-12-01 15:15:28 -06:00
Arya Irani
e49938fd61 un-un-generalize Causal.hs functions, and make Hashable less extensible
It may be worth it to un-split it from Causal.Type.hs also.

Moved Hashable.hs guts into BuildHashable.hs

un-un-specialize Unison.Hashable.hs

un-delete Unison.Test.Codebase.Causal.hs (checked out from #2690)
2021-11-29 15:24:06 -10:00
Chris Penner
7ce4d3b479 Merge branch 'trunk' into topic/rehash-codebase 2021-11-29 16:48:09 -06:00
Chris Penner
450d681914 Merge branch 'trunk' into cp/diff-namespace-hashes 2021-11-29 14:24:30 -06:00
Chris Penner
86c2a3085f Handle branch prefixing without constructing invalid names 2021-11-29 14:13:06 -06:00
mergify[bot]
bd8a7a6388
Merge pull request #2680 from unisonweb/cp/fzf-fix
Make fzf commands respect relative/absolute paths
2021-11-29 18:51:24 +00:00
Chris Penner
d610523399 Copy pasta 2021-11-29 11:39:23 -06:00
Chris Penner
fe0a197f3d Merge branch 'trunk' into cp/order-branch-modifications-1552 2021-11-29 11:31:36 -06:00
Chris Penner
a7cb97428f Make fzf commands respect relative/absolute 2021-11-24 16:03:11 -06:00
Chris Penner
9c14f44078 Merge branch 'trunk' into cp/order-branch-modifications-1552 2021-11-24 15:17:02 -06:00
Mitchell Rosen
7cd517eafa Merge two set utils modules 2021-11-24 12:26:06 -05:00
Paul Chiusano
609c5e9c4a
Merge pull request #2670 from unisonweb/fix/2663
Fix a variable capture issue in pattern compilation
2021-11-24 09:57:49 -06:00
Chris Penner
d55625b935
Merge pull request #2666 from unisonweb/cp/ormolu-tracking
Add ORMOLU_DISABLE to every file to allow auto-formatting.
2021-11-24 09:00:23 -06:00
Dan Doel
d6635b3e0e Fix a variable capture issue in pattern compilation 2021-11-24 00:43:22 -05:00
Chris Penner
ead3983ddc Merge branch 'trunk' into cp/namespace.delete.force 2021-11-23 12:25:06 -06:00
Chris Penner
f8b39a7744 Re-enable ORMOLU on properly formatted files 2021-11-23 12:10:59 -06:00
Chris Penner
54d6fbf1bd Add ORMOLU_DISABLE to every file.
This allows all developers to add ormolu autoformat on save in their
editors without worrying about creating huge diffs on files that haven't
been formatted yet.

If you format a file, remove the DISABLE comment to ensure it stays
formatted in the future.
2021-11-23 12:10:58 -06:00
Arya Irani
1c03b1d615 Merge remote-tracking branch 'origin/topic/rehash-codebase' into topic/rehash-codebase-reexport-hash 2021-11-22 10:17:26 -05:00
Mitchell Rosen
b6112e1c72 bang on ConstructorReference 2021-11-20 23:20:00 -05:00
Mitchell Rosen
f05549bbad bang on ConstructorReference 2021-11-20 23:18:34 -05:00
Mitchell Rosen
e3999c8730 ⅄ 21-11-10-reftypes → 21-11-19-reftypes-rehash-branch 2021-11-20 23:15:21 -05:00
Mitchell Rosen
6052820089 ⅄ trunk → topic/rehash-codebase 2021-11-19 14:59:35 -05:00
Mitchell Rosen
9f4a5f2e70 ⅄ trunk → 21-11-10-reftypes 2021-11-19 13:26:08 -05:00
Chris Penner
04a07cd490 Add a bunch of docs 2021-11-19 10:31:00 -06:00
Arya Irani
861087d76a misc PR feedback 2021-11-19 10:47:47 -05:00
Chris Penner
498babfe8f Keep same ord instance to avoid transcript churn 2021-11-18 18:22:48 -06:00