ghcup
installs the Glasgow Haskell Compiler from the official
release channels, enabling you to easily switch between different
versions. It maintains a self-contained ~/.ghcup
directory.
- Follow instructions at https://www.haskell.org/ghcup/
$ ghcup --help
$HOME/.ghcup/bin
contains:
ghcup
to set current ghc version in PATH, to install/remove ghc versionsghc
to compile Haskell programscabal
to install Haskell packages and build Haskell projects
Your shell PATH
is automatically setup by the installation script to
find these, you can also use source $HOME/.ghcup/env
to set it up
any time.