commercialhaskell / commercialhaskell/stack

`stack ghcid`

Open
#5,530 3 comments 0 reactions 0 assignees View on GitHub
type: enhancement
Dominant language
Haskell
Stars
4.1k
Forks
850
Avg merge
10h 37m
Merged PRs (30d)
4

Description

I switched from using `stack test --file-watch` to `ghcid`, using a script I hacked together:

```sh
ghcid -c="stack ghci test/QuickCheck.hs" -T="main" $@
```
This gives me instant rebuild and full test suite on every save (to my source *and* test suite). It's so fast it's scary. And it politely clears the screen behind itself between runs.

However, this script doesn't support multiple test suites, and it's not clear how to without duplicating information already in `package.yaml`.

This badly needs proper stack integration. I assume stack intends to support this use case in principle, since it has `--file-watch`, and `ghci` is vastly better.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.