nix(hlint): apply hlint's suggestions inplace - #5195
Conversation
6379347 to
473f3ca
Compare
Very useful, I'd prefer this be the default behavior and the flag turns it off. If the lint is not applied we fail on CI anyway. No flag is also an option. |
👍 |
473f3ca to
e7b4674
Compare
If we doing this as default, then we should also introduce the |
At this point we should just introduce better tooling to handle these formatters and linters entirely. |
e7b4674 to
3b3cff4
Compare
|
Rebased over the addition of |
`postgrest-lint` now applies hlint's suggestions inplace to all haskell files. Hlint supports this via another package `apply-refact` which is marked broken in nixpkgs because it doesn't build with GHC 9.10, so we are using the GHC 9.12 pinned version. Co-authored-by: Wolfgang Walther <walther@technowledgy.de> Signed-off-by: Taimoor Zaeem <taimoorzaeem@gmail.com>
3b3cff4 to
015124c
Compare
Looks great! 👍 |
|
Successfully created backport PR for |
postgrest-lintnow applies hlint's suggestions inplace to allhaskell files.
Hlint supports this via another package
apply-refactwhich is marked broken in nixpkgs because it doesn't build with GHC 9.10, so we are using the GHC 9.12 pinned version.