build-hs
Installation
SKILL.md
Haskell Build Monitoring with ghcid
Start a ghcid session to monitor the build.
Before starting: Verify which command is actually allowed in .claude/settings.local.json for ghcid and ensure you use it to avoid prompting for permission.
First, check package.yaml to identify the test components:
tests:section → use the test name with-testsuffix (e.g.,dota-sage-test)
Then run ghcid with the all target (which includes all libraries and executables, including internal libraries) PLUS all test components using the Bash tool with run_in_background: true:
ghcid \
-c 'cabal repl --enable-multi-repl all <test-name>' \
--restart=<project>.cabal \
--test ':!cabal test' \
--outputfile=build.log \
--clear