9759a4c3a3
- Create scripts/build, scripts/test, scripts/run, scripts/install-hooks - Create git-hooks/pre-commit (auto-format staged .hs files) - Create git-hooks/pre-push (check formatting + hlint before push) - Handle git worktrees correctly in hook installation - Run fourmolu on all source files to fix existing formatting
13 lines
263 B
Bash
Executable File
13 lines
263 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
cd "$(dirname "${BASH_SOURCE[0]}")/.."
|
|
|
|
echo "Checking formatting with fourmolu..."
|
|
./hs fourmolu --mode check app/ src/ test/
|
|
|
|
echo "Linting with hlint..."
|
|
./hs hlint app/ src/ test/
|
|
|
|
echo "Running tests..."
|
|
./hs stack test
|