cachix / git-hooks.nix

Seamless integration of https://pre-commit.com git hooks with Nix.
Apache License 2.0
528 stars 154 forks source link

Upgrade Haskell formatters (fourmolu/ormoulu) #155

Closed bladyjoker closed 2 years ago

bladyjoker commented 2 years ago

Hi,

First of all, thanks a ton for delivering such a useful project, you've made so many lives easier!

Secondly, I'm having some trouble with Haskell formatters, specifically fourmolu, as atm it's a pretty old version of the tool that's being used and the settings.ormolu.defaultExtensions setting is cumbersome to manage as it requires one to manage the extension set in both Cabal and pre-commit-hooks.nix configuration.

The latest version of ormolu don't support the --cabal-default-extensions flag as well as fourmolu:

and it seems like that's the default behavior now to scan the Cabal file for default-extensions stanza. How would you feel about upgrading these packages?

domenkozar commented 2 years ago

Done: https://github.com/cachix/pre-commit-hooks.nix/pull/158