Skip to content

Instantly share code, notes, and snippets.

@AlexeyRaga
Created August 16, 2020 10:22
Show Gist options
  • Save AlexeyRaga/98b2e975c0873e4f30477eefb8dc0b80 to your computer and use it in GitHub Desktop.
Save AlexeyRaga/98b2e975c0873e4f30477eefb8dc0b80 to your computer and use it in GitHub Desktop.
VSCode Haskell Tasks
{
"version": "2.0.0",
"tasks": [
{
"label": "Build",
"type": "shell",
"command": "bash",
"args": ["-lc", "cabal new-build && echo 'Done'"],
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": {
"owner": "haskell",
"fileLocation": "relative",
"pattern": [
{
"regexp": "^(.+?):(\\d+):(\\d+):\\s+(error|warning|info):.*$",
"file": 1, "line": 2, "column": 3, "severity": 4
},
{
"regexp": "\\s*(.*)$",
"message": 1
}
]
},
"presentation": {
"echo": false,
"reveal": "always",
"focus": false,
"panel": "shared",
"showReuseMessage": false,
"clear": true
}
},
{
"label": "Test",
"type": "shell",
"command": "bash",
"args": ["-lc", "cabal new-test && echo 'Done'"],
"group": {
"kind": "test",
"isDefault": true
},
"problemMatcher": {
"owner": "haskell",
"fileLocation": "relative",
"pattern": [
{
"regexp": "^(.+?):(\\d+):(\\d+):.*$",
"file": 1, "line": 2, "column": 3, "severity": 4
},
{
"regexp": "\\s*(\\d\\)\\s)?(.*)$",
"message": 2
}
]
},
"presentation": {
"echo": false,
"reveal": "always",
"focus": false,
"panel": "shared",
"showReuseMessage": false,
"clear": true
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment