tasks.json
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "build",
"type": "shell",
"command": "stack",
"args": [
"build"
],
"group": {
"kind": "build",
"isDefault": true
},
"presentation": {
"panel": "new"
},
"problemMatcher": []
},
{
"label": "run",
"type": "shell",
"command": "stack",
"args": [
"build; if [ $? = 0 ]; then stack exec ${workspaceRootFolderName}-exe; fi"
],
"presentation": {
"panel": "new"
},
"problemMatcher": []
},
{
"label": "test",
"type": "shell",
"command": "stack",
"args": [
"test",
"--fast"
],
"group": {
"kind": "test",
"isDefault": true
},
"presentation": {
"panel": "new"
}
},
{
"label": "clean",
"type": "shell",
"command": "stack",
"args": [
"clean"
],
"problemMatcher": []
},
{
"label": "haddock",
"type": "shell",
"command": "stack",
"args": [
"haddock"
],
"problemMatcher": []
}
]
}