haskell-template provides a builtin list of flake checks:
haskell-language-server check (
hlsCheck.enable = true) from
haskell-flake: Tests that HLS continues to work with the project.
- treefmt check: Tests that the project is autoformatted and does not have any hlint warnings.
nix flake check and IFD
check-flake.url = "github:srid/check-flake";to “inputs”
Now you can run the following command 1 to run all flake checks locally for the current system:
nix --option sandbox false build .#check -L