README.md: add how to use GHCID with nix-shell also

This commit is contained in:
Anton-Latukha 2020-09-30 17:01:23 +03:00
parent cc468af340
commit 471f4d4277
No known key found for this signature in database
GPG Key ID: 3D84C07E91802E41
1 changed files with 8 additions and 0 deletions

View File

@ -64,6 +64,14 @@ cabal v2-build
cabal v2-repl
```
4. Development status loop with amazing [`ghcid`](https://github.com/ndmitchell/ghcid):
```
ghcid --command="cabal v2-repl --repl-options=-fno-code --repl-options=-fno-break-on-exception --repl-options=-fno-break-on-error --repl-options=-v1 --repl-options=-ferror-spans --repl-options=-j"
```
(optional) To use projects reproducible environment, wrap `ghcid ...` command into a `nix-shell --command ' '`.
For simplicity alias it for your shell.
3. Testing:
* Default suite: