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 some pragma completion cases #2474

Merged
merged 4 commits into from Dec 13, 2021
Merged

Conversation

Ailrun
Copy link
Member

@Ailrun Ailrun commented Dec 12, 2021

In some editors, parenthesis completion can handle a language specific cases. For example, in my Emacs, when I type

{-#

it automatically gives

{-##-}

However, the current pragma completion plugin does not recognize this case, and completes

{-# LANGUAGE #- #-}

which is invalid. This PR cares the editors which fill #-} or -} for Haskell.

Copy link
Member

@jneira jneira left a comment

Choose a reason for hiding this comment

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

Nice to see you had the chance to work in hls, it was missing you 😄
Thanks for the fix

@Ailrun Ailrun added the merge me Label to trigger pull request merge label Dec 12, 2021
@Ailrun
Copy link
Member Author

Ailrun commented Dec 12, 2021

@jneira Thank you. Sadly, I'm still under tons of work for papers, but this one and class plugin bothers me too much even for the papers :) I will also soon send a class plugin patch for GHC 9.0.

@mergify mergify bot merged commit 0c3f1c4 into haskell:master Dec 13, 2021
@Ailrun Ailrun deleted the pragma-completion branch December 13, 2021 21:08
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

2 participants