Commit Graph

486 Commits

Author SHA1 Message Date
Mitchell Rosen
cc71ee0352 minor cleanup 2022-07-07 13:08:42 -04:00
Mitchell Rosen
94ed4b09ee move orphan instances, and de-dupe more Var helper functions 2022-07-05 13:26:14 -04:00
Mitchell Rosen
89e42f2b2d one ABT.Var class 2022-07-05 13:08:57 -04:00
Mitchell Rosen
75bccb7700 go back to using show 2022-07-05 12:33:45 -04:00
Mitchell Rosen
c5a60a7ea8 ⅄ trunk → one-less-abt 2022-07-05 12:00:04 -04:00
Paul Chiusano
42e8dc952c implementation of fast text patterns (not hooked up to runtime yet) 2022-06-28 18:47:57 -04:00
Dan Doel
aef728992b Merge branch 'trunk' into work/arrays 2022-06-20 15:20:36 -04:00
Travis Staton
535eaf98a9 Add unison-codebase-sqlite-hashing-v2 package
unison-codebase-sqlite is now parameterized by the hashing functions
2022-06-16 14:29:11 -04:00
Arya Irani
7bee79fe73 unison-core1 doesn't need util 2022-06-16 14:08:26 -04:00
Mitchell Rosen
8c3ced61bc Delete Unison.ABT.ABT and Unison.ABT.Term
Replace with re-exports from U.Core.ABT
2022-06-13 21:35:03 -04:00
Dan Doel
dc3d0f75d7 Add builtin array types and functions 2022-06-09 14:23:36 -04:00
Arya Irani
da18e47b2e Add package.yaml workaround to stack rebuild issue 2022-06-03 13:07:33 -04:00
Arya Irani
df33c1e257 add when/Paths_ stuff to every package.yaml target
didn't put it into another PR, I'm sorry. But we can cherry-pick this out in a separate PR
2022-06-02 17:10:59 -04:00
Arya Irani
63fc75416c Merge remote-tracking branch 'origin/trunk' into arya/ooo-sync
# Conflicts:
#	codebase2/codebase-sqlite/U/Codebase/Sqlite/Queries.hs
#	parser-typechecker/package.yaml
#	parser-typechecker/src/Unison/Codebase.hs
#	parser-typechecker/src/Unison/Codebase/SqliteCodebase.hs
#	parser-typechecker/src/Unison/Codebase/SqliteCodebase/Migrations/MigrateSchema3To4.hs
#	unison-cli/src/Unison/Codebase/Editor/Command.hs
#	unison-cli/src/Unison/Codebase/Editor/HandleCommand.hs
#	unison-cli/src/Unison/Codebase/Editor/Output.hs
#	unison-cli/src/Unison/Codebase/Editor/VersionParser.hs
#	unison-cli/src/Unison/CommandLine/OutputMessages.hs
2022-05-27 13:49:34 -04:00
Chris Penner
5bf8f1c204
Causal hash/branch hash cleanup migration (#3073)
* Rename Branch.Hash -> Branch.CausalHash for clarity.

* WIP simplifying types for Causals and hashes

* Single type for causal hashes.

* Remove vestigial function

* Clean up some rogue hashes

* Formatting

* Fix tests

* Add namespace hash migration

* Cleanup

* Finish writing migration for bad branches, add some sanity checks too.

* Keep hash_object mappings up to date.

* Working migration

* More checks

* Dependency-order migration WIP

* Finish first draft of crawled migration strategy

* Improve speed and reliability of migration.

* Better migration logging

* Perform integrity checks once after all migrations are done.

* Considerably speed up migration by only re-hashing branches which have
the same causal hash as value hash.

* Clarify migration docs

* Move 'differing causal value hash' check to integrity checks

* Bump schema version for new codebases

* PR cleanup

* Remove commented out migration

* PR feedback cleanup

* Add integrity check for hash_objects.

* Correctly set 'changes' key

* Don't check hash object integrity in migrations

Some codebases (like mine) are borked in this area and we'll need to fix
them later on.

* Correct final migration number

* Check namespace hash even if branch has no children

* Rehash every branch regardless

* Use v4 of base.
2022-05-26 16:20:38 -06:00
Mitchell Rosen
37ac68c88e ⅄ trunk → arya/ooo-sync 2022-05-19 09:39:13 -04:00
Rúnar
ad353f99d7 Merge branch 'trunk' of https://github.com/unisonweb/unison into topic/datebuiltins 2022-05-09 20:56:34 -04:00
Mitchell Rosen
11b1cefaf7 ⅄ trunk → arya/ooo-sync 2022-05-05 15:09:06 -04:00
mergify[bot]
86bb6dfbf1
Merge pull request #3063 from unisonweb/arya/Wno-type-defaults
restore `-Wtype-defaults`
2022-05-05 18:34:44 +00:00
Chris Penner
e8ad5e6a17
Load names from index for faster definition and find endpoints (#3059)
Allow using names index to back the backend so we can call it faster from Enlil.
2022-05-05 11:19:09 -06:00
Arya Irani
690e5723d1 Merge remote-tracking branch 'origin/arya/Wno-type-defaults' into arya/ooo-sync 2022-04-29 19:13:24 -04:00
Arya Irani
d8f1a7870b restore -Wtype-defaults 2022-04-29 19:06:53 -04:00
Rúnar
450490ae32 Merge branch 'trunk' of https://github.com/unisonweb/unison into topic/datebuiltins 2022-04-22 21:33:05 -04:00
Rúnar
1e6aa43994 Add builtins to support nano system clocks 2022-04-14 10:34:38 -04:00
Mitchell Rosen
a06e6352d0 extract unison-util-base32hex package 2022-04-12 15:51:03 -04:00
Mitchell Rosen
3abdda60e3 ⅄ trunk → arya/ooo-sync 2022-04-11 10:12:11 -04:00
Mitchell Rosen
fd839e4fa4 work on ooo-sync downloading entities 2022-04-07 13:57:35 -04:00
Paul Chiusano
2a47fdfa09 lib segment ranking 2022-04-07 00:42:59 -05:00
Chris Penner
8e65b79f5e format with new ormolu 2022-02-28 15:52:25 -06:00
Chris Penner
fa7a20b92c Remove ORMOLU_DISABLE 2022-02-28 15:41:59 -06:00
Simon Højberg
88f3c3a2f0 Doc Embed: Add Video and FrontMatter
Expand the Doc Embed variant to support embedding videos and
frontmatter. The latter will be rendered at the top of the output of the
html file rendered via the `docs.to-html` command.
2022-02-24 12:27:40 -05:00
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