Created
August 16, 2020 10:22
-
-
Save AlexeyRaga/98b2e975c0873e4f30477eefb8dc0b80 to your computer and use it in GitHub Desktop.
VSCode Haskell Tasks
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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