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

Add suggestion quick fixes #34

Open
fwcd opened this issue Mar 25, 2021 · 1 comment
Open

Add suggestion quick fixes #34

fwcd opened this issue Mar 25, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@fwcd
Copy link
Owner

fwcd commented Mar 25, 2021

E.g.

  • Pointfree conversions
    • Eta-reductions (\x -> f x to f)
    • Const (\_ -> x to const x)
    • Void (x >> return () to void x)
    • ...
  • Common library functions (maybe x id m to fromMaybe x m, fst . runState to evalState, snd . runState to execState, foldr1 (?) to anyOf, ...)
  • Redundant dos (do { x } to x)
  • Merging adjacent lets
  • Warn (or at least 'info') about Debug.Trace imports
  • ...

These suggestions could be similar to what hlint suggests.

@fwcd fwcd added the enhancement New feature or request label Mar 25, 2021
@fwcd
Copy link
Owner Author

fwcd commented Mar 3, 2022

These suggestions could also be factored out into a separate linting tool that curry-language-server then integrated (i.e. depends on).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant