From 84de506c0bb980d2e483cdd4d3224c329d048f46 Mon Sep 17 00:00:00 2001 From: Taylor Fausak Date: Sun, 11 Apr 2021 19:57:59 +0000 Subject: [PATCH] Configure development container --- .devcontainer/Dockerfile | 1 + .devcontainer/devcontainer.json | 6 +++++- .vscode/settings.json | 6 ++++++ 3 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 .vscode/settings.json diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index 7416a35..a0125fb 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -2,3 +2,4 @@ FROM haskell:9.0.1 ARG USER=haskell RUN useradd --create-home --shell "$( which bash )" "$USER" USER "$USER" +ENV PATH="/home/$USER/.cabal/bin:$PATH" diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 601cce0..16319b9 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,5 +1,9 @@ { "build": { "dockerfile": "Dockerfile" - } + }, + "extensions": [ + "taylorfausak.purple-yolk" + ], + "postCreateCommand": "cabal update" } diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..0006a31 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,6 @@ +{ + "purple-yolk.brittany.command": "false", + "purple-yolk.ghci.command": "cabal repl --ghc-options -Wwarn --repl-options -ddump-json", + "purple-yolk.hlint.command": "false", + "purple-yolk.hlint.onSave": false +}