8000 series/M1i by aryairani · Pull Request #1351 · unisonweb/unison · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

series/M1i #1351

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 249 commits into from
Mar 12, 2020
Merged

series/M1i #1351

merged 249 commits into from
Mar 12, 2020

Conversation

aryairani
Copy link
Contributor
@aryairani aryairani commented Mar 12, 2020

Thanks (in no particular order) to @pete-ts, @mitchellwrosen, @bontaq, @atacratic, @anovstrup, @pt2121, @anchpop, @Dandandan, @moses-alexander, for your contributions to this release!

New features:

Changed behavior:

Fixes:

aryairani and others added 30 commits October 31, 2019 18:55
# Conflicts:
#	parser-typechecker/tests/Suite.hs
# Conflicts:
#	parser-typechecker/tests/Suite.hs
…rors/warnings

# Conflicts:
#	parser-typechecker/src/Unison/Codebase/Editor/HandleInput.hs
example: (probably helpful to suppress git output, print out a pr.load command, and show a deeper diff)

.> pr.create https://github.com/unisonweb/base https://github.com/puffnfresh/base
⚙  git clone 'https://github.com/unisonweb/base' /Users/arya/.cache/unisonlanguage/gitfiles/q0rume4r1p1lc5tut0gcbbcvndjgr8ai0qst6ej9bdjr1vcgmtueo0103oi4kt4tr0m1vok5sbkk91g1qcr2og9pit3rp8ceeq752r8/HEAD
Cloning into '/Users/arya/.cache/unisonlanguage/gitfiles/q0rume4r1p1lc5tut0gcbbcvndjgr8ai0qst6ej9bdjr1vcgmtueo0103oi4kt4tr0m1vok5sbkk91g1qcr2og9pit3rp8ceeq752r8/HEAD'...
remote: Enumerating objects: 2664, done.
remote: Counting objects: 100% (2664/2664), done.
remote: Compressing objects: 100% (1822/1822), done.
remote: Total 2664 (delta 811), reused 2619 (delta 770), pack-reused 0
Receiving objects: 100% (2664/2664), 909.77 KiB | 12.81 MiB/s, done.
Resolving deltas: 100% (811/811), done.
Checking out files: 100% (4512/4512), done.
⚙  git -C /Users/arya/.cache/unisonlanguage/gitfiles/q0rume4r1p1lc5tut0gcbbcvndjgr8ai0qst6ej9bdjr1vcgmtueo0103oi4kt4tr0m1vok5sbkk91g1qcr2og9pit3rp8ceeq752r8/HEAD rev-parse --git-dir
.git
⚙  git -C /Users/arya/.cache/unisonlanguage/gitfiles/q0rume4r1p1lc5tut0gcbbcvndjgr8ai0qst6ej9bdjr1vcgmtueo0103oi4kt4tr0m1vok5sbkk91g1qcr2og9pit3rp8ceeq752r8/HEAD fetch 'https://github.com/unisonweb/base'
From https://github.com/unisonweb/base
 * branch            HEAD       -> FETCH_HEAD
⚙  git clone 'https://github.com/puffnfresh/base' /Users/arya/.cache/unisonlanguage/gitfiles/sdmhi6m7r9a4qtilfhq82tfhv9u9f4sfhmtd8pop8gdtdb61ralcusd2p3r8btcf1o3gc5di3nhlor3utjg3n288ov1u1vud417ds5o/HEAD
Cloning into '/Users/arya/.cache/unisonlanguage/gitfiles/sdmhi6m7r9a4qtilfhq82tfhv9u9f4sfhmtd8pop8gdtdb61ralcusd2p3r8btcf1o3gc5di3nhlor3utjg3n288ov1u1vud417ds5o/HEAD'...
remote: Enumerating objects: 2229, done.
remote: Counting objects: 100% (2229/2229), done.
remote: Compressing objects: 100% (1635/1635), done.
remote: Total 2229 (delta 542), reused 2210 (delta 523), pack-reused 0
Receiving objects: 100% (2229/2229), 739.76 KiB | 9.36 MiB/s, done.
Resolving deltas: 100% (542/542), done.
Checking out files: 100% (4572/4572), done.
⚙  git -C /Users/arya/.cache/unisonlanguage/gitfiles/sdmhi6m7r9a4qtilfhq82tfhv9u9f4sfhmtd8pop8gdtdb61ralcusd2p3r8btcf1o3gc5di3nhlor3utjg3n288ov1u1vud417ds5o/HEAD rev-parse --git-dir
.git
⚙  git -C /Users/arya/.cache/unisonlanguage/gitfiles/sdmhi6m7r9a4qtilfhq82tfhv9u9f4sfhmtd8pop8gdtdb61ralcusd2p3r8btcf1o3gc5di3nhlor3utjg3n288ov1u1vud417ds5o/HEAD fetch 'https://github.com/puffnfresh/base'
From https://github.com/puffnfresh/base
 * branch            HEAD       -> FETCH_HEAD

  + Adds / updates:

    Either.swap Tuple.swap Weighted.eithers Weighted.tuples

.>
- Unison doesn't seem to work with GHC 8.8 right now, so e.g.
    `cabal v2-configure --with-ghc=ghc-8.6.5`
  to set up if 8.6 isn't the `ghc` you have in your path. This
  doesn't go in the global project, though, I think, because it's
  specific to the local machine, and I'm not aware of cabal
  managing multiple GHC versions automatically (although I don't
  pay close attention).
pchiusano and others added 20 commits March 8, 2020 22:51
Remove term names from evaluation in docs
Uses a post-order traversal of the branch, rebuilding from the bottom up and visiting each node exactly once.
EDBE
Exploded Codebase.referencesByPrefix into three functions:

- referencesByPrefix :: Text -> m (Set Reference.Id)
+ termReferencesByPrefix :: ShortHash -> m (Set Reference.Id)
+ typeReferencesByPrefix :: ShortHash -> m (Set Reference.Id)
+ termReferentsByPrefix :: ShortHash -> m (Set (Referent' Reference.Id))

for top-level terms, top-level types, and for Ref/Con mix.
They only return "derived" references, the thinking is that builtins will
come from a higher level api.

Exploded Command.ReferencesByShortHash into three functions
- ReferencesByShortHash :: ShortHash -> Command m i v (Set Reference.Id)
+ TypeReferencesByShortHash :: ShortHash -> Command m i v (Set Reference)
+ TermReferencesByShortHash :: ShortHash -> Command m i v (Set Reference)
+ TermReferentsByShortHash :: ShortHash -> Command m i v (Set Referent)

I actually don't remember why it was ok that it was Reference.Id before
but isn't now.  Maybe we hadn't wanted to auto-complete Builtin names?
I don't remember.

controversial?
* Added a type arg `r` to `Referent`; type alias and patterns for compat.
* Deleted BranchUtil.getTermByShortHash because I'm guessing we no longer
  want to limit such searches to the branch?  Uncertain.
* Reference.fromShortHash rejects inputs with ctorIds in them; seemed
  better than ignoring them, but I could imagine there being a case for
  each.
- give _all_ Abs nodes in the resulting lambda chain the annotation of the case body (not just the outer node)
Fix Branch.updateChildren to not elide empty branches with history
…annotation

correct annotation of match cases to always include the case body
Some nice cleanup of `stepManyAt0` and friends
- simplify resolveHHQS'Referents
- add missing logic to TermReferentsByShortHash
- don't pass Codebase just to get deserializers
- improve transcript prose
supporting hashes in `alias`; and names and builtins in `replace`
@anovstrup
Copy link
Contributor
anovstrup commented Mar 12, 2020

@aryairani handle .. with was already available in M1h, so that shouldn't be included in the changed behavior section. #1165: better pretty-printing and syntax highlighting of handle .. with expressions

@aryairani
Copy link
Contributor Author

@anovstrup Yeah; I don't know how to find a list of PRs by merge date, so sometimes I catch stray ones that were discussed after M1h.

@aryairani aryairani marked this pull request as ready for review March 12, 2020 20:17
@aryairani aryairani requested a review from pchiusano March 12, 2020 20:40
@aryairani aryairani merged commit a9ebca8 into series/M1 Mar 12, 2020
@pchiusano pchiusano mentioned this pull request May 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0