talira

The main installer for Haskell

open sourceLGPL-3.0-onlyfree

GHCup is the main installer for Haskell. One command installs GHC, cabal-install, the Haskell Language Server and Stack into your home directory, without sudo or the system package manager, and GHCup then switches between versions of each, with unversioned links pointing at the default you choose. It can also compile GHC from source, adds builds for platforms upstream does not support (Alpine), and GPG-signs its metadata and its own builds. It runs on Linux, macOS, FreeBSD, Windows and WSL2, and is built for use in CI as much as by hand. Its code moved from GitHub to Codeberg. LGPL-3.0-only.

Ways to install

Package managers

Problems it solves

  • install the Haskell compiler and build tools on my laptop
  • switch between GHC versions for different Haskell projects
  • set up a Haskell toolchain in CI

Features

  • installs GHC, cabal-install, Haskell Language Server and Stack
  • switches between installed versions of each tool
  • installs into your home directory without sudo or a system package manager
  • can compile GHC from source
  • GPG-signed metadata and builds
  • non-interactive CLI suited to CI

Alternatives

The same job

These do what GHCup does.

  1. RVM Ruby Version Manager: install several Ruby interpreters side by side and switch between them, each with its own named gemsets.

Compare GHCup with the top 3