mirror of
https://github.com/srid/nixos-config.git
synced 2026-01-11 09:17:54 +08:00
824 B
824 B
| name | description |
|---|---|
| fastci | Run fast CI for Haskell projects |
This command runs a fast CI pipeline for Haskell projects using Cabal.
Steps:
- Run
git add <FILE>(NOTgit add .) to add any untracked files added by you DO NOT COMMIT changes. - Fix all hlint warnings
- Ensure it builds (
cabal build all) AND fix all GHC warnings - Ensure tests pass:
cabal test all - Run
pre-commit run -ato autoformat.
This will:
- Clean up code by fixing compiler and linter warnings
- Validate formatting and pre-commit hooks
- Ensure the project builds successfully
- Run the full test suite
Prerequisites:
- Must be in a Haskell project directory with cabal.project or *.cabal files
- GHC, Cabal, and hlint must be available in the Nix devShell environment
- pre-commit must be configured for the project