LoginSignup
1
1

More than 5 years have passed since last update.

[VS Code]Haskell(Stack)用tasks.json

Last updated at Posted at 2018-02-24
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": []
        }
    ]
}
1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1