talira

Runs GHCi and reloads on every save, showing your Haskell project's errors

open sourceBSD-3-Clausefree

ghcid is a very small command-line tool for Haskell development: it opens ghci, runs :reload whenever a source file changes, and prints the current errors and warnings formatted to fit a fixed-height console, or "All good". It works out how to start your project (stack ghci, ghci with a .ghci file, or cabal repl), can run a test command after each successful load, and deliberately does nothing else: no editor integration of its own, no web server, no dependency on the GHC library. Editor plugins for VS Code and Vim build on it.

Problems it solves

  • I want to see my Haskell compile errors the moment I save, without waiting for a full build
  • Haskell Language Server is too heavy and slow on my project
  • I keep typing :reload in ghci after every edit

Features

  • Reloads ghci on every file change
  • Errors and warnings sized to fit the console
  • Detects stack, cabal or a .ghci file to start the project
  • Runs a test command after a successful reload
  • Editor plugins for VS Code, Neovim and Vim