GHC needs the following packages pre-installed:
sudo apt install gcc g++ build-essential curl libffi-dev zlib1g-dev libgmp-dev libgmp10 libncurses-dev libncurses5 libtinfo5
It might be a good idea to stick to ghcup
as it lets us know whenever an upgrade is available. For example:
New GHC version available: 9.0.1. To upgrade, run 'ghcup install ghc 9.0.1'
curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | sh
- Haskell Stack
curl -sSL https://get.haskellstack.org/ | sh -s - -d /me/Applications/Haskell/stack-latest
- Glasgow Haskell Compiler
Download the binary distribution from the official download page.
./configure --prefix=/me/Applications/Haskell/ghc-latest
make install
- Cabal
Download the prebuilt binary package from the download page.
You can simply use chocolatery.
choco install haskell-language-server # will also install ghc
# choco install ghc
choco install haskell-stack