HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

ghcup — Haskell toolchain installer. Install, manage, and update Haskell toolchains. More information: <http

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandinstallerghcupinstallclitoolchainhaskellmanage

Problem

How to use the ghcup command: Haskell toolchain installer. Install, manage, and update Haskell toolchains. More information: <https://gitlab.haskell.org/haskell/ghcup-hs>.

Solution

ghcup — Haskell toolchain installer. Install, manage, and update Haskell toolchains. More information: <https://gitlab.haskell.org/haskell/ghcup-hs>.

Start the interactive TUI:
ghcup tui


List available GHC/Cabal versions:
ghcup list


Install the recommended GHC version:
ghcup install ghc


Install a specific GHC version:
ghcup install ghc {{version}}


Activate a specific GHC version:
ghcup set ghc {{version}}


Install cabal-install:
ghcup install cabal


Update ghcup itself:
ghcup upgrade

Code Snippets

Start the interactive TUI

ghcup tui

List available GHC/Cabal versions

ghcup list

Install the recommended GHC version

ghcup install ghc

Install a specific GHC version

ghcup install ghc {{version}}

Activate a specific GHC version

ghcup set ghc {{version}}

Context

tldr-pages: common/ghcup

Revisions (0)

No revisions yet.