.vscode: tasks.json
authorAshley Yakeley <ashley@semantic.org>
Wed, 22 May 2019 22:51:50 +0000 (15:51 -0700)
committerAshley Yakeley <ashley@semantic.org>
Wed, 22 May 2019 22:51:50 +0000 (15:51 -0700)
.vscode/tasks.json [new file with mode: 0644]

diff --git a/.vscode/tasks.json b/.vscode/tasks.json
new file mode 100644 (file)
index 0000000..eed61ea
--- /dev/null
@@ -0,0 +1,37 @@
+{
+  "version": "2.0.0",
+  "presentation": {
+    "reveal": "silent",
+    "panel": "new"
+  },
+  "tasks": [
+    {
+      "group": {
+        "kind": "build",
+        "isDefault": true
+      },
+      "label": "Build",
+      "type": "shell",
+      "command": "cd ${workspaceRoot} && stack build && echo OK",
+      "problemMatcher": [
+        {
+          "owner": "stack",
+          "fileLocation": "absolute",
+          "pattern": [
+            {
+              "regexp": "^(.*):(\\d+):(\\d+):\\s+(warning|error):",
+              "file": 1,
+              "line": 2,
+              "column": 3,
+              "severity": 4
+            },
+            {
+              "regexp": "^\\s+(.*)$",
+              "message": 1
+            }
+          ]
+        }
+      ]
+    }
+  ]
+}