on 4485427 help sign in
3 files changed+51−2
since splitsnapshots
unifiedsplit
.vscode/tasks.json+50 bin/test+1−1 flake.nix−1
.vscode/tasks.jsonnew file+50
@@ -0,0 +1,50 @@
1+
2+{
3+ // Automatically created by phoityne-vscode extension.
4+
5+ "version": "2.0.0",
6+ "presentation": {
7+ "reveal": "always",
8+ "panel": "new"
9+ },
10+ "tasks": [
11+ {
12+ // F7
13+ "group": {
14+ "kind": "build",
15+ "isDefault": true
16+ },
17+ "label": "haskell build",
18+ "type": "shell",
19+ //"command": "cabal configure && cabal build"
20+ "command": "stack build"
21+ },
22+ {
23+ // F6
24+ "group": "build",
25+ "type": "shell",
26+ "label": "haskell clean & build",
27+ //"command": "cabal clean && cabal configure && cabal build"
28+ "command": "stack clean && stack build"
29+ //"command": "stack clean ; stack build" // for powershell
30+ },
31+ {
32+ // F8
33+ "group": {
34+ "kind": "test",
35+ "isDefault": true
36+ },
37+ "type": "shell",
38+ "label": "haskell test",
39+ //"command": "cabal test"
40+ "command": "stack test"
41+ },
42+ {
43+ // F6
44+ "isBackground": true,
45+ "type": "shell",
46+ "label": "haskell watch",
47+ "command": "stack build --test --no-run-tests --file-watch"
48+ }
49+ ]
50+}
bin/test+1−1
@@ -2,4 +2,4 @@
22set -xe
33
44# NOTE: ghcid should be run with -W to allow warnings from should-not-typecheck
5−nix develop -c sh -c "ghcid $* -W -c 'cabal new-repl test:jrec-test' -T \":main $*\""
5+nix-shell --pure --run "ghcid $* -W -c 'cabal new-repl test:jrec-test' -T \":main $*\""
flake.nix−1
@@ -23,7 +23,6 @@
2323 packages = p: [ p.jrec ];
2424 buildInputs = with ghcVersions.ghc92; [
2525 cabal-install
26− ghcid
2726 haskell-language-server
2827 ];
2928 };