Skip to content

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