Skip to content

Commit

Permalink
Make HLS work in gitpod
Browse files Browse the repository at this point in the history
  • Loading branch information
pepeiborra committed Sep 5, 2021
1 parent 415602f commit 427fcf3
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .gitpod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,17 @@ tasks:
export CABAL_DIR=/workspace/.cabal
export STACK_ROOT=/workspace/.stack
curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | sh
source /workspace/.ghcup/env
# ensure that there is an HLS binary for the installed GHC version
ghcup install --set ghc 8.10.6
# Fix the default Cabal config since VSCode does not see CABAL_DIR
mkdir ~/.cabal
cp /workspace/.cabal/config ~/.cabal/config
# Add ghcup binaries to the PATH since VSCode does not see 'source .ghcup/env'
cd /usr/local/bin
sudo ln -s /workspace/.ghcup/bin/* /usr/local/bin
init: |
cabal build --enable-tests
command: |
Expand Down

0 comments on commit 427fcf3

Please sign in to comment.