Getting started
To start a ghciwatch session, you’ll need a command to start a GHCi session
(like cabal repl
) and a set of paths and directories to watch for changes.
For example:
ghciwatch --command "cabal repl lib:test-dev" \
--watch src --watch test
Check out the examples and command-line arguments for more information.
Ghciwatch can run test suites after reloads, evaluate
code in comments, log compiler errors to a
file, run startup hooks
like hpack
to generate .cabal
files, and more!