File tree 1 file changed +9
-5
lines changed
1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change 3
3
- before : |
4
4
export GHCUP_INSTALL_BASE_PREFIX=/workspace
5
5
export BOOTSTRAP_HASKELL_NONINTERACTIVE=1
6
+ export BOOTSTRAP_HASKELL_MINIMAL=1
6
7
export CABAL_DIR=/workspace/.cabal
7
8
export STACK_ROOT=/workspace/.stack
8
9
curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | sh
9
10
10
11
# 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
12
19
13
20
# Fix the default Cabal config since VSCode does not see CABAL_DIR
21
+ cabal update
14
22
mkdir ~/.cabal
15
23
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
20
24
init: |
21
25
cabal build --enable-tests
22
26
command: |
You can’t perform that action at this time.
0 commit comments