LinuxCommandLibrary

ghcid

Auto-reloading daemon for rapid Haskell development

TLDR

Start with default settings

$ ghcid
copy
Watch specific file
$ ghcid --target=[file.hs]
copy
Run test on reload
$ ghcid --test=[main]
copy
With custom command
$ ghcid --command="[cabal repl]"
copy
Output to terminal title
$ ghcid --title
copy

SYNOPSIS

ghcid [options]

DESCRIPTION

ghcid (GHCi daemon) provides rapid Haskell development feedback by running GHCi in the background, watching source files, and automatically reloading on changes. Errors and warnings are displayed immediately.
The tool minimizes the compile-fix-compile cycle by providing instant feedback. It integrates with cabal, stack, and bare GHCi. The --test option runs expressions after successful compilation, enabling continuous testing.

PARAMETERS

--command CMD

GHCi command to run.
--target TARGET
Target to load.
--test EXPR
Expression to run after reload.
--reload PATH
Additional paths to watch.
--restart PATH
Paths that trigger full restart.
--title
Update terminal title with status.
--help
Display help information.

CAVEATS

Requires GHCi setup working correctly. Large projects may have reload delays. Watch paths need correct configuration.

HISTORY

ghcid was created by Neil Mitchell to provide fast feedback during Haskell development, becoming a popular development tool in the Haskell ecosystem.

SEE ALSO

ghci(1), ghc(1), cabal(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community