Skip to content

Commit 398de60

Browse files
committed
tweaks
1 parent 427fcf3 commit 398de60

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

.gitpod.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,24 @@ tasks:
33
- before: |
44
export GHCUP_INSTALL_BASE_PREFIX=/workspace
55
export BOOTSTRAP_HASKELL_NONINTERACTIVE=1
6+
export BOOTSTRAP_HASKELL_MINIMAL=1
67
export CABAL_DIR=/workspace/.cabal
78
export STACK_ROOT=/workspace/.stack
89
curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | sh
910
1011
# ensure that there is an HLS binary for the installed GHC version
11-
ghcup install --set ghc 8.10.6
12+
/workspace/.ghcup/bin/ghcup install ghc 8.10.6
13+
/workspace/.ghcup/bin/ghcup install cabal
14+
15+
# Add ghcup binaries to the PATH since VSCode does not see 'source .ghcup/env'
16+
pushd /usr/local/bin
17+
sudo ln -s /workspace/.ghcup/bin/* /usr/local/bin
18+
popd
1219
1320
# Fix the default Cabal config since VSCode does not see CABAL_DIR
21+
cabal update
1422
mkdir ~/.cabal
1523
cp /workspace/.cabal/config ~/.cabal/config
16-
17-
# Add ghcup binaries to the PATH since VSCode does not see 'source .ghcup/env'
18-
cd /usr/local/bin
19-
sudo ln -s /workspace/.ghcup/bin/* /usr/local/bin
2024
init: |
2125
cabal build --enable-tests
2226
command: |

0 commit comments

Comments
 (0)