Strategy
I see two options:
-
Checking. Fail on incorrect formatting.
-
Autoformatting as a chore job triggered by commits on master.
I vote for 2 (it served me well in my practice), but 1 is more common.
Formatters
For Haskell I suggest to just go with Ormolu since it's minimal amount of decisions.
For Cabal I suggest to go with cabal-gild.
Strategy
I see two options:
Checking. Fail on incorrect formatting.
Autoformatting as a chore job triggered by commits on master.
I vote for 2 (it served me well in my practice), but 1 is more common.
Formatters
For Haskell I suggest to just go with Ormolu since it's minimal amount of decisions.
For Cabal I suggest to go with cabal-gild.