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

[Plugin] stylish-haskell formatter #146

Merged
merged 2 commits into from
Jun 8, 2020

Conversation

Ailrun
Copy link
Member

@Ailrun Ailrun commented Jun 4, 2020

Is it OK to use "stylishHaskellCmd:" error message when the name of the plugin is "stylish-haskell"? All existing plugins have names without "-", so I couldn't find an example for this kind of naming.

Done:

  • Add stylish-haskell plugin
  • Add some tests for stylish-haskell formatting

Copy link
Collaborator

@fendor fendor left a comment

Choose a reason for hiding this comment

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

LGTM!

Is it OK to use "stylishHaskellCmd:" error message when the name of the plugin is "stylish-haskell"?

Yes, I think that is ok

@Ailrun Ailrun force-pushed the stylish-haskell-plugin branch from 6f8c980 to a18cab6 Compare June 5, 2020 18:59
@Ailrun Ailrun force-pushed the stylish-haskell-plugin branch from a18cab6 to c61f27a Compare June 5, 2020 19:01
@Ailrun Ailrun marked this pull request as ready for review June 5, 2020 19:02
@Ailrun
Copy link
Member Author

Ailrun commented Jun 5, 2020

@fendor Thank you for the review and answer.
Now I added tests and believe it's ready for more reviews and merge.

\bar (Just (Left _)) = 0\n\
\bar (Just (Right x)) = x\n"
]

Copy link
Member Author

Choose a reason for hiding this comment

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

While I was writing this, I thought it might be better to add a golden test facility.
Any opinions/ideas?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Good idea, should be easy to integrate with https://hackage.haskell.org/package/tasty-golden

Copy link
Member Author

Choose a reason for hiding this comment

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

I will try that in a separate PR. Thank you for the suggestion :)

Copy link
Collaborator

@fendor fendor left a comment

Choose a reason for hiding this comment

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

LGTM

@fendor fendor requested a review from alanz June 8, 2020 10:13
@alanz alanz merged commit 84b0073 into haskell:master Jun 8, 2020
@Ailrun Ailrun deleted the stylish-haskell-plugin branch June 9, 2020 17:31
@Ailrun Ailrun mentioned this pull request Jun 9, 2020
pepeiborra pushed a commit that referenced this pull request Dec 27, 2020
+ Reduce manual duplication of information shared between hover and
  goto-def tests

+ Make sure that all the information in the test specifications that
  relates to fiddly line and column numbers, fits together on one
  screen, and is generally easier to match and understand by eye.
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.

3 participants