-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.gitpod.yml
49 lines (41 loc) · 1.76 KB
/
.gitpod.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
image:
file: .gitpod.Dockerfile
tasks:
- command: |
stack test
# - before: |
# # Only the /workspace folder is persistent
# # HLS uses XDG specification for cache directories, here we also set
# # a good default for the other XDG directories
# cat <<HERE > $HOME/.bashrc.d/210-haskell
# export CABAL_DIR=/workspace/.cabal
# export STACK_ROOT=/workspace/.stack
# export GHCUP_INSTALL_BASE_PREFIX=/workspace
# export XDG_CACHE_HOME=/workspace/.cache
# export XDG_CONFIG_HOME=/workspace/.config
# export XDG_DATA_HOME=/workspace/.local/share
# export XDG_STATE_HOME=/workspace/.local/state
# HERE
# # Use the same environment variables in this shell session
# source $HOME/.bashrc.d/210-haskell
# curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | BOOTSTRAP_HASKELL_NONINTERACTIVE=1 BOOTSTRAP_HASKELL_MINIMAL=1 BOOTSTRAP_HASKELL_VERBOSE=1 BOOTSTRAP_HASKELL_GHC_VERSION=9.0.2 sh
# $GHCUP_INSTALL_BASE_PREFIX/.ghcup/bin/ghcup install ghc 9.0.2 --set
# $GHCUP_INSTALL_BASE_PREFIX/.ghcup/bin/ghcup install cabal
# $GHCUP_INSTALL_BASE_PREFIX/.ghcup/bin/ghcup install stack
# $GHCUP_INSTALL_BASE_PREFIX/.ghcup/bin/ghcup install hls
# # Add ghcup binaries to the PATH since VSCode does not see 'source .ghcup/env'
# pushd /usr/local/bin
# sudo ln -s /workspace/.ghcup/bin/* /usr/local/bin
# popd
# # Fix the Cabal dir since VSCode does not see CABAL_DIR
# cabal user-config init
# echo "Symlinking /workspace/.cabal to ~/.cabal"
# ln -s /workspace/.cabal ~/.cabal
# init: |
# stack test
# command: |
# stack test
vscode:
extensions:
- haskell.haskell
- justusadam.language-haskell