Skip to content
Snippets Groups Projects
Verified Commit 23901c05 authored by Olivier Benz's avatar Olivier Benz
Browse files

Dev Containers: Update GHC.Dockerfile

parent a7f2c0ff
Branches
No related tags found
No related merge requests found
......@@ -109,7 +109,11 @@ RUN if [ -n "$STACK_VERSION_OVERRIDE" ]; then \
curl -sSLO https://github.com/commercialhaskell/stack/releases/download/v"$STACK_VERSION"/stack-"$STACK_VERSION"-linux-"$(uname -m)".tar.gz.sha256; \
sha256sum -cs stack-"$STACK_VERSION"-linux-"$(uname -m)".tar.gz.sha256; \
tar -xzf stack-"$STACK_VERSION"-linux-"$(uname -m)".tar.gz; \
mv -f stack-"$STACK_VERSION"-linux-"$(uname -m)"/stack /usr/local/bin/stack; \
if dpkg --compare-versions "${GHC_VERSION%.*}" le "9.2"; then \
mv -f stack-"$STACK_VERSION"-linux-"$(uname -m)"/stack /usr/bin/stack; \
else \
mv -f stack-"$STACK_VERSION"-linux-"$(uname -m)"/stack /usr/local/bin/stack; \
fi; \
## Clean up
rm -rf /tmp/*; \
fi
......@@ -5,7 +5,7 @@ These Dev Containers provide the following tools:
- The
[Haskell Toolchain](https://www.haskell.org/ghcup/install/#supported-tools)
([GHC](https://www.haskell.org/ghc),
[Cabal](https://cabal.readthedocs.io),
[Cabal (the tool)](https://cabal.readthedocs.io),
[Stack](https://docs.haskellstack.org), and
[HLS](https://haskell-language-server.readthedocs.io))
- [Git](https://git-scm.com)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment