- Install
ghcup
. Make sure it is available in PATH before starting vscode. - With
ghcup
:ghcup install ghc latest
, version=9.8.1ghcup install stack latest
, version=2.13.1ghcup install hls latest
, version=2.5.0.0ghcup install cabal latest
, version=3.10.2.0
cabal update
- Install VS Code / VS Codium: https://wiki.haskell.org/IDEs#VSCodium.2FVisual_Studio_Code
- In vscode:
- Install the HLS extension (2.4.2 is the current version):
ctrl+p
and thenext install haskell.haskell
.
- Install the HLS extension (2.4.2 is the current version):
Open step 1:
codium step1
cabal init -i step2
cd step2
cabal run