Skip to content

Latest commit

 

History

History
56 lines (40 loc) · 982 Bytes

install.md

File metadata and controls

56 lines (40 loc) · 982 Bytes

Install

Install GHCup

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

Start GHCi

Prelude> prompt → λ::

echo ':set prompt  "\\x03BB: "' | tee -a $HOME/.ghci > /dev/null && chmod 644 $HOME/.ghci

Start GHCi:

ghci
λ:

Quit:

λ: :help
λ: :quit