Skip to content

Add suggestion quick fixes #34

Description

@fwcd

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions