- The GHCup Haskell installer, version latest
- ghcup configuration, in ~/.zshrc add the following configuration
export PATH="$HOME/.ghcup/bin:$PATH"
ghcup tui # to easily setup the haskell toolchain
- or better install tools one by one
ghcup install ghc recommended
ghcup set ghc recommended
ghcup install stack recommended
ghcup set stack recommended
ghcup install cabal recommended
ghcup set cabal recommended
ghcup install hls recommended
ghcup set hls recommended
- Test the installation of the toolchain
ghc --version
ghci --version
stack --version
cabal --version
"haskell.toolchain": {
"hls": "latest",
"cabal": "latest",
"ghc": "latest",
"stack": "latest"
},
- update index from hackage
curl -v http://localhost:9090/hello
cabal test
cabal test --test-show-details=direct