- haskell.org
curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | sh
Welcome to Haskell!
This script can download and install the following binaries:
* ghcup - The Haskell toolchain installer
* ghc - The Glasgow Haskell Compiler
* cabal - The Cabal build tool for managing Haskell software
* stack - A cross-platform program for developing Haskell projects (similar to cabal)
* hls - (optional) A language server for developers to integrate with their editor/IDE
ghcup installs only into the following directory,
which can be removed anytime:
$HOME/.ghcup
Version:
ghc --version
stack --version
cabal --version
Prelude>
prompt → λ:
:
echo ':set prompt "\\x03BB: "' | tee -a $HOME/.ghci > /dev/null && chmod 644 $HOME/.ghci
Start GHCi:
ghci
λ:
Quit:
λ: :help
λ: :quit