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

M1g #1000

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 49 commits into from
Nov 26, 2019
Merged

M1g #1000

merged 49 commits into from
Nov 26, 2019

Conversation

aryairani
Copy link
Contributor

EvanBurchard and others added 30 commits November 1, 2019 18:10
Make the typechecker result more precise and make some illegal state unrepresentable.
current logic picks something arbitrary based on ordering of `Set`, which isn't helping anybody
One remaining loose end is that in recursive definitions are using the suffixified name in the body, for instance:

foo.bar.baz x = baz x + 1

the body `baz` should be fully qualified. Fix might be to unhashComponent before printing, or to create a more interesting PPE on a per declaration basis (it could use the non-suffix name for any references part of the same cycle as the declaration itself)
# Conflicts:
#	parser-typechecker/src/Unison/Codebase/Editor/HandleInput.hs
# Conflicts:
#	parser-typechecker/src/Unison/Codebase/Editor/HandleInput.hs
#	parser-typechecker/src/Unison/Codebase/Editor/Output.hs
by using `Result` instead of `M` where possible, because
Applicative instance for `Result` accumulates errors.
- minimalCodebaseStructure has been further minimized to just `paths/_head`
- `Command.LoadRemoteRootBranch`, `FileCodebase.getRootBranch`, and `Git.pullGitBranch` take a BranchLoadMode argument which dictates whether to fail or silently succeed if the source repo doesn't contain a codebase
- documented an unhelpful crash in createDir
- no-op instead of crash when `copyFromGit` `from` arg doesn't exist
- renamted `writeAllTermsAndTypes` to `syncToDirectory` for readability
- we noticed that relative local git repos aren't resolved correctly (they are resolved relative to the git/codebase staging dir where git commands are executed)
- pushing to bare repos is untested
- added `scripts/test-git.bash` to start collecting git-related tests, but haven't wired it into `.travis.yml`.  It could probably also be a regular EasyTest, since it's no longer calling Github APIs.
Parsing and pretty-printing use shortest unique suffix to identify definitions
@aryairani aryairani merged commit 3d9e482 into series/M1 Nov 26, 2019
@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.

4 participants
0