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

Move Common Plugin Functions into PluginUtils #2433

Merged
merged 4 commits into from Dec 4, 2021

Conversation

drsooch
Copy link
Collaborator

@drsooch drsooch commented Dec 3, 2021

Based on a comment from @pepeiborra in #2350, it was suggested to pull out common Plugin helper functions used by multiple hls plugins. This PR moves the common functionality into PluginUtil.hs and updates eval, rename, retrie, and alternateNumberFormat to use said helpers.

`response`, `handleMaybe`, `handleMaybeM` are three functions that pop
up in a variety of plugins. This commit centralizes these three
functions into one module, and makes the change across the related
plugins.
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.

a really neat refactoring, many thanks to help keep clean the codebase

@jneira jneira added the merge me Label to trigger pull request merge label Dec 3, 2021
@mergify mergify bot merged commit 77d0429 into haskell:master Dec 4, 2021
@drsooch drsooch deleted the refactor-plugin-utils branch August 20, 2022 02:43
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