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

Fix hls-class-plugin on ghc-9.2 #2733

Merged
merged 19 commits into from Mar 6, 2022
Merged

Fix hls-class-plugin on ghc-9.2 #2733

merged 19 commits into from Mar 6, 2022

Conversation

July541
Copy link
Collaborator

@July541 July541 commented Feb 22, 2022

Let me play with ghc-9.x :)

  • Fix codeAction
  • Fix edit command

( (Map.keys . Map.filter isClassNodeIdentifier . sourcedNodeIdents . sourcedNodeInfo)
<=< nodeChildren
)
$ pointCommand hf (fromJust (fromCurrentRange pmap range) ^. J.start & J.character +~ 1)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In fact, this +1 is from a coincidental attempt.

@July541 July541 marked this pull request as draft February 22, 2022 15:04
@pepeiborra
Copy link
Collaborator

Is this ready for review?

@July541
Copy link
Collaborator Author

July541 commented Feb 26, 2022

Is this ready for review?

Not yet.

Ready now!

@July541 July541 marked this pull request as ready for review February 27, 2022 14:23
Comment on lines +110 to +119
addWhere (InstD xInstD (ClsInstD ext decl@ClsInstDecl{..})) =
let ((EpAnn entry anns comments), key) = cid_ext
in InstD xInstD (ClsInstD ext decl {
cid_ext = (EpAnn
entry
(AddEpAnn AnnWhere (EpaDelta (SameLine 1) []) : anns)
comments
, key)
})
addWhere decl = decl
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you add a brief comment explaining what this code does? It's kinda hard to read and therefore maintain

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Explained the effect of the function and the trace of the parameter.

@July541
Copy link
Collaborator Author

July541 commented Mar 4, 2022

ghc9.0 installation failed, can anyone please restart that?

@July541
Copy link
Collaborator Author

July541 commented Mar 6, 2022

hls-rename-plugin failed unexpectedly

@July541
Copy link
Collaborator Author

July541 commented Mar 6, 2022

hls-rename-plugin failed unexpectedly

Once more:(
Do I miss something?

Copy link
Member

@Ailrun Ailrun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM :)

@Ailrun Ailrun added the merge me Label to trigger pull request merge label Mar 6, 2022
@mergify mergify bot merged commit e29f61f into haskell:master Mar 6, 2022
@July541 July541 deleted the class-9.2 branch March 11, 2022 15:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merge me Label to trigger pull request merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants