Added VSCode config
This commit is contained in:
parent
b36a7a4b95
commit
fa3d4c5126
2 changed files with 58 additions and 1 deletions
5
.gitignore
vendored
5
.gitignore
vendored
|
@ -2,10 +2,13 @@
|
||||||
dist/
|
dist/
|
||||||
dist-newstyle/
|
dist-newstyle/
|
||||||
out/
|
out/
|
||||||
|
tmp/
|
||||||
|
extra/
|
||||||
|
|
||||||
.idea/
|
.idea/
|
||||||
.vscode/
|
|
||||||
|
|
||||||
.DS_Store
|
.DS_Store
|
||||||
*.exe
|
*.exe
|
||||||
*.dll
|
*.dll
|
||||||
|
|
||||||
|
stack.yaml.lock
|
||||||
|
|
54
.vscode/tasks.json
vendored
Normal file
54
.vscode/tasks.json
vendored
Normal file
|
@ -0,0 +1,54 @@
|
||||||
|
{
|
||||||
|
"version": "2.0.0",
|
||||||
|
"tasks": [
|
||||||
|
{
|
||||||
|
"label": "Run (+ build)",
|
||||||
|
"type": "shell",
|
||||||
|
"command": "stack run",
|
||||||
|
"problemMatcher": [],
|
||||||
|
"dependsOn": [ "Build" ],
|
||||||
|
"group": {
|
||||||
|
"kind": "build",
|
||||||
|
"isDefault": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "Build",
|
||||||
|
"type": "shell",
|
||||||
|
"command": "stack build",
|
||||||
|
"problemMatcher": [],
|
||||||
|
"group": {
|
||||||
|
"kind": "build",
|
||||||
|
"isDefault": false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "Test",
|
||||||
|
"type": "shell",
|
||||||
|
"command": "stack test",
|
||||||
|
"problemMatcher": [],
|
||||||
|
"group": {
|
||||||
|
"kind": "build",
|
||||||
|
"isDefault": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "GHCI",
|
||||||
|
"type": "shell",
|
||||||
|
"command": "stack ghci ${input:file_to_load}",
|
||||||
|
"problemMatcher": [],
|
||||||
|
"group": {
|
||||||
|
"kind": "build",
|
||||||
|
"isDefault": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"inputs": [
|
||||||
|
{
|
||||||
|
"id": "file_to_load",
|
||||||
|
"description": "CLI arguments specifying file to load into Stack GHCI",
|
||||||
|
"default": ".",
|
||||||
|
"type": "promptString"
|
||||||
|
},
|
||||||
|
]
|
||||||
|
}
|
Reference in a new issue