srid/haskell-template

Add Githook for Code Formatting

EvanPiro opened this issue · 5 comments

Putting auto-formatting on a per commit basis would save the developer time resolving formatting issues due to failing CI.

Getting something like the following in a githook would suffice:
nix develop -c "treefmt"

srid commented

I wouldn't enable it by default, but we can add documentation (linked from README.md) explaining to the user how to do it ... possibly based on:

srid commented

Relevant: #36 (a nix check to make sure that source code was autoformatted).