Skip to content
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

Support change annotations #302

Merged
merged 4 commits into from
Mar 17, 2021
Merged

Conversation

michaelpj
Copy link
Collaborator

Added some more missing capabilities while I was at it.

This one is a pain because the type of the edits in WorkspaceEdit changes. This has two main annoying factors:

  • Lots of extra InLs and InRs. This is probably a good candidate for not using |?, but I wasn't sure.
  • Annoyingly we can't easily access the fields that both TextEdit and AnnotatedTextEdit have in common, i.e. we can't just do ^. range on TextEdit |? AnnotatedTextEdit even though both have range.

I'm tempted to resolve these by making an type (AnEdit?) for the union and giving it lenses that "do the right thing". That would avoid some of the annoying helper function proliferation.

@wz1000 wz1000 merged commit 4605c48 into haskell:master Mar 17, 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.

2 participants