FROM gitpod/workspace-full RUN sudo install-packages build-essential curl libffi-dev libffi7 libgmp-dev libgmp10 \ libncurses-dev libncurses5 libtinfo5 && \ curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | BOOTSTRAP_HASKELL_NONINTERACTIVE=1 BOOTSTRAP_HASKELL_MINIMAL=1 sh && \ echo 'source $HOME/.ghcup/env' >> $HOME/.bashrc && \ echo 'export PATH=$HOME/.cabal/bin:$HOME/.local/bin:$PATH' >> $HOME/.bashrc && \ . /home/gitpod/.ghcup/env && \ # Install all verions of GHC that HLS supports. Putting GHC into Docker image makes workspace start much faster. ghcup install ghc 8.10.7 && \ ghcup install ghc 9.0.2 && \ ghcup install ghc 9.2.3 && \ ghcup install ghc 9.2.4 --set && \ ghcup install hls --set && \ ghcup install cabal --set && \ ghcup install stack --set && \ cabal update && \ cabal install --disable-executable-dynamic --install-method copy --constraint "stylish-haskell +ghc-lib" \ stylish-haskell implicit-hie hoogle && \ rm -rf $HOME/.cabal/store && \ pip install pre-commit && \ npm install -g http-server