I would like to announce nix-stylish-haskell-check:
nix-stylish-haskell-check is a small Nix library that produces a derivation that runs
stylish-haskell over a set of input Haskell files.
stylish-haskell detects that the input Haskell files aren’t formatted correctly, it fails the build of the derivation.
nix-stylish-haskell-check is convenient to use in CI to make sure all your Haskell files are formatted correctly.
At Cross Compass, we are using
nix-stylish-haskell-check in our CI pipelines for all our important Haskell projects.