forked from kowainik/learn4haskell
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Create .gitpod.yml * Readme: add Gitpod * Update README.md * Update .gitpod.yml * Update README.md * Update README.md * Update .gitpod.yml * Update .gitpod.yml * Update README.md * add button Co-authored-by: Geoffrey Huntley <[email protected]> * Update README.md Co-authored-by: Geoffrey Huntley <[email protected]>
- Loading branch information
Showing
2 changed files
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# from https://github.com/haskell/haskell-language-server/blob/master/.gitpod.yml | ||
tasks: | ||
- before: | | ||
# Only the /workspace folder is persistent | ||
export XDG_DATA_HOME=/workspace/.local/share | ||
export XDG_CONFIG_HOME=/workspace/.local/config | ||
export XDG_STATE_HOME=/workspace/.local/state | ||
export XDG_CACHE_HOME=/workspace/.cache | ||
export CABAL_DIR=/workspace/.cabal | ||
export STACK_ROOT=/workspace/.stack | ||
# install ghcup, ghc and cabal | ||
export GHCUP_INSTALL_BASE_PREFIX=/workspace | ||
export BOOTSTRAP_HASKELL_NONINTERACTIVE=1 | ||
export BOOTSTRAP_HASKELL_MINIMAL=1 | ||
curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | sh | ||
/workspace/.ghcup/bin/ghcup install ghc --set | ||
/workspace/.ghcup/bin/ghcup install cabal | ||
# 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 update | ||
echo "Symlinking /workspace/.cabal to ~/.cabal" | ||
ln -s /workspace/.cabal ~ | ||
init: | | ||
cabal update | ||
vscode: | ||
extensions: | ||
- haskell.haskell | ||
- justusadam.language-haskell |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters