Automic VaultAutomic Vault

brew

Install ghc with Homebrew, apk, chocolatey, apt, dnf, MacPorts, Nix, pacman, zypper

Glorious Glasgow Haskell Compilation System. Version 9.14.1 via Homebrew; verified 2026-06-25.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install ghc

local Homebrew formula metadata

MacPortsverified · 94%
sudo port install ghc

MacPorts ports tree · lang/ghc/Portfile · source: api.github.com

Linux

Alpine Linux apkverified · 92%
sudo apk add ghc

Alpine Linux edge package indexes · ghc · source: dl-cdn.alpinelinux.org

Debian aptverified · 92%
sudo apt install ghc

Debian stable package indexes · ghc · source: deb.debian.org

Fedora dnfverified · 92%
sudo dnf install ghc

Fedora Rawhide package metadata · ghc · source: dl.fedoraproject.org

Nixverified · 92%
nix profile install nixpkgs#ghc

nixpkgs package indexes · ghc · source: raw.githubusercontent.com

Arch Linux pacmanverified · 92%
sudo pacman -S ghc

Arch Linux sync databases · ghc · source: geo.mirror.pkgbuild.com

openSUSE zypperverified · 92%
sudo zypper install ghc

openSUSE Tumbleweed package metadata · ghc · source: download.opensuse.org

overview

Package summary

Glorious Glasgow Haskell Compilation System

Commands and aliases

  • ghc
  • ghc-9.14.1
  • ghc-pkg
  • ghc-pkg-9.14.1
  • ghci
  • ghci-9.14.1
  • haddock
  • haddock-ghc-9.14.1
  • hp2ps
  • hp2ps-ghc-9.14.1
  • hpc
  • hpc-ghc-9.14.1
  • hsc2hs
  • hsc2hs-ghc-9.14.1
  • runghc
  • runghc-9.14.1
  • runhaskell
  • runhaskell-9.14.1

history

Project history and usage

The Glasgow Haskell Compiler, usually called GHC, is the reference-grade open-source compiler and interactive environment for Haskell. It supplies the `ghc` compiler, the GHCi interpreter, package tools such as `ghc-pkg`, documentation tooling such as Haddock, and runtime-system support for profiling, parallelism, and native-code execution.

Project history

GHC began at the University of Glasgow near the beginning of the 1990s as an academic research project funded by the UK government. Its stated goals were practical as well as academic: make a robust and portable Haskell compiler freely available, provide a modular foundation for compiler research, and learn from real programs.

The compiler evolved into a self-hosted Haskell implementation with three major pieces: the compiler, boot libraries, and the runtime system. The runtime system became central to GHC's identity because it handles garbage collection, scheduling, profiling, exceptions, and the execution machinery linked into compiled Haskell programs.

Adoption history

GHC became the dominant implementation around which the Haskell ecosystem organized. The AOSA chapter by Simon Marlow and Simon Peyton Jones described hundreds of thousands of downloads, thousands of Hackage packages, undergraduate teaching use, and commercial use; the GHC site likewise points users to Hackage libraries, Haskell Language Server, Cabal, Stack, and GHCup.

The Homebrew `ghc` formula packages the general GHC track for macOS users, while separate versioned formulae let projects select older or branch-specific compiler lines. That split mirrors the way Haskell projects often pin compiler versions because language extensions, boot libraries, and package ABI compatibility can matter.

How it is used

Practitioners use `ghc` for batch compilation, `ghci` for interactive development, `runghc` or `runhaskell` for scripts, `ghc-pkg` for package database inspection, and Haddock for API documentation. The user guide presents GHC as one program that can operate as either an interactive interpreter or a batch compiler.

Build tools such as Cabal and Stack commonly invoke GHC rather than requiring users to call every compiler flag by hand. Advanced users still care about GHC flags directly for optimisation, profiling, language extensions, cross-platform builds, and debugging package database or linker issues.

Why package nerds care

GHC is package-manager significant because it is both a compiler and a dependency root for much of the Haskell toolchain. Installing the formula affects not only `ghc`, but also GHCi, boot libraries, package metadata, Haddock, profiling tools, and the versioned executable names that allow scripts to target a specific compiler.

The project also embodies a classic language-runtime packaging problem: the compiler is written in Haskell and needs an existing GHC to build, while libraries compiled by one branch may need rebuilding for another. Versioned formulae, GHCup metadata, and project-level pinning all grew around those realities.

Timeline

  • 1990: Haskell was created as a common lazy functional language for research.
  • Early 1990s: GHC began as a Glasgow research project with portability, performance, and extensibility goals.
  • 2007: The GHC user guide documented the even-numbered stable-branch versioning policy starting with GHC 6.8.
  • 2011: The AOSA chapter described GHC as an industrial-strength compiler used in teaching, research, and commercial settings.
  • 2025: GHC 9.14.1 release artifacts provided the branch represented by the unversioned Homebrew executable names in this batch input.

Related projects

  • Hackage is the package repository that distributes Haskell libraries built for use with GHC and other tooling.
  • GHCup is the Haskell installer that installs GHC along with related tools.
  • Cabal, Stack, Haddock, Happy, Alex, and Haskell Language Server form the surrounding toolchain named by GHC's own documentation.

security posture

Risk level: yellow

compiler and runtime ecosystem.

Risk classifier

yellow risk · high confidence · runtime

Why

  • compiler and runtime ecosystem

Signals

  • override:ghc

Install behavior

  • Homebrew declares a post-install hook for this formula.
  • Homebrew bottle metadata is available for 6 platform targets.
  • Installs with 1 runtime dependencies.
  • Build metadata lists 5 build dependencies.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

executables

Installed executables

CommandKindExposureNote
ghccliglobal executable
ghc-9.14.1cliglobal executable
ghc-pkgcliglobal executable
ghc-pkg-9.14.1cliglobal executable
ghcicliglobal executable
ghci-9.14.1cliglobal executable
haddockcliglobal executable
haddock-ghc-9.14.1cliglobal executable
hp2pscliglobal executable
hp2ps-ghc-9.14.1cliglobal executable
hpccliglobal executable
hpc-ghc-9.14.1cliglobal executable
hsc2hscliglobal executable
hsc2hs-ghc-9.14.1cliglobal executable
runghccliglobal executable
runghc-9.14.1cliglobal executable
runhaskellcliglobal executable
runhaskell-9.14.1cliglobal executable

freshness

Version and freshness

These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.

page generated2026-07-08
manager version9.14.1
manager updated2026-06-25
local dataok
upstreamnot checked
latest detectednot detected

https://haskell.org/ghc/

install metadata

Package metadata

Package keybrew:ghc
Version9.14.1
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/ghc
Homepagehttps://haskell.org/ghc/
Repositoryhttps://gitlab.haskell.org/ghc/ghc
Upstream docshttps://downloads.haskell.org/ghc/9.14.1/docs/users_guide
LicenseBSD-3-Clause
Source archivehttps://downloads.haskell.org/~ghc/9.14.1/ghc-9.14.1-src.tar.xz
Last updated2026-06-25T13:37:42+02:00
Pulseupdated
Dependenciesgmp
Build dependenciesautoconf, automake, python@3.14, sphinx-doc, xz
Uses from macOSlibffi, ncurses
Bottleavailable (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-installdefined
Servicenone declared

registry facts

Source database details

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Nameghc
Aliases
  • ghc@9
  • ghc@9.14
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

Debian apt95%

ghc 9.6.6-4

The Glasgow Haskell Compilation system

https://haskell.org/ghc/

sudo apt install ghc
  • Section: haskell
  • Architecture: amd64
  • 12 dependencies
  • 32 provides
  • 5 optional deps
  • normalized package name match
  • Matched by: Ghc
Debian stable package indexes · deb.debian.org · Debian stable package indexes: ghc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

ghc-doc 9.6.6-4

Documentation for the Glasgow Haskell Compilation system

https://haskell.org/ghc/

sudo apt install ghc-doc
  • Section: doc
  • Architecture: all
  • Source Package: ghc
  • 3 dependencies
  • 32 provides
  • normalized package name match
  • Matched by: Ghc
Debian stable package indexes · deb.debian.org · Debian stable package indexes: ghc-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

ghc-prof 9.6.6-4

Profiling libraries for the Glasgow Haskell Compilation system

https://haskell.org/ghc/

sudo apt install ghc-prof
  • Section: haskell
  • Architecture: amd64
  • Source Package: ghc
  • 1 dependencies
  • 32 provides
  • normalized package name match
  • Matched by: Ghc
Debian stable package indexes · deb.debian.org · Debian stable package indexes: ghc-prof from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

ghc

nix profile install nixpkgs#ghc
  • normalized package name match
  • Matched by: Ghc
nixpkgs package indexes · raw.githubusercontent.com · nixpkgs package indexes: ghc from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
Ubuntu apt95%

ghc 9.4.7-3

The Glasgow Haskell Compilation system

https://haskell.org/ghc/

sudo apt install ghc
  • Section: universe/haskell
  • Architecture: amd64
  • 10 dependencies
  • 32 provides
  • 4 optional deps
  • normalized package name match
  • Matched by: Ghc
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: ghc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

ghc-doc 9.4.7-3

Documentation for the Glasgow Haskell Compilation system

https://haskell.org/ghc/

sudo apt install ghc-doc
  • Section: universe/doc
  • Architecture: all
  • Source Package: ghc
  • 3 dependencies
  • 32 provides
  • normalized package name match
  • Matched by: Ghc
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: ghc-doc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

ghc-prof 9.4.7-3

Profiling libraries for the Glasgow Haskell Compilation system

https://haskell.org/ghc/

sudo apt install ghc-prof
  • Section: universe/haskell
  • Architecture: amd64
  • Source Package: ghc
  • 1 dependencies
  • 32 provides
  • normalized package name match
  • Matched by: Ghc
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: ghc-prof from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
apk95%

ghc 9.10.3-r2

The Glasgow Haskell Compiler

https://haskell.org/ghc

sudo apk add ghc
  • License: BSD-3-Clause
  • Architecture: x86_64
  • Source Package: ghc
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Ghc
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: ghc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

ghc-dev 9.10.3-r2

The Glasgow Haskell Compiler (development files)

https://haskell.org/ghc

sudo apk add ghc-dev
  • License: BSD-3-Clause
  • Architecture: x86_64
  • Source Package: ghc
  • 1 dependencies
  • normalized package name match
  • Matched by: Ghc
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: ghc-dev from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

ghc-doc 9.10.3-r2

The Glasgow Haskell Compiler (documentation)

https://haskell.org/ghc

sudo apk add ghc-doc
  • License: BSD-3-Clause
  • Architecture: x86_64
  • Source Package: ghc
  • normalized package name match
  • Matched by: Ghc
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: ghc-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
dnf95%

ghc 9.10.3-155.fc45

Glasgow Haskell Compiler

https://haskell.org/ghc/

sudo dnf install ghc
  • License: BSD-3-Clause AND HaskellReport
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: ghc
  • 8 dependencies
  • 2 provides
  • normalized package name match
  • Matched by: Ghc
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: ghc from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

ghc-Cabal 3.12.1.0-155.fc45

Haskell Cabal library

https://hackage.haskell.org/package/Cabal

sudo dnf install ghc-Cabal
  • License: BSD-3-Clause
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: ghc
  • 29 dependencies
  • 2 provides
  • normalized package name match
  • Matched by: Ghc
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: ghc-Cabal from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

ghc-Cabal-devel 3.12.1.0-155.fc45

Haskell Cabal library development files

https://haskell.org/ghc/

sudo dnf install ghc-Cabal-devel
  • License: BSD-3-Clause
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: ghc
  • 3 dependencies
  • 3 provides
  • normalized package name match
  • Matched by: Ghc
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: ghc-Cabal-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

ghc-Cabal-doc 3.12.1.0-155.fc45

Haskell Cabal library documentation

https://haskell.org/ghc/

sudo dnf install ghc-Cabal-doc
  • License: BSD-3-Clause
  • Category: Unspecified
  • Architecture: noarch
  • Source Package: ghc
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Ghc
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: ghc-Cabal-doc from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

ghc-Cabal-prof 3.12.1.0-155.fc45

Haskell Cabal profiling library

https://haskell.org/ghc/

sudo dnf install ghc-Cabal-prof
  • License: BSD-3-Clause
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: ghc
  • 2 dependencies
  • 2 provides
  • normalized package name match
  • Matched by: Ghc
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: ghc-Cabal-prof from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

ghc-Cabal-syntax 3.12.1.0-155.fc45

Haskell Cabal-syntax library

https://hackage.haskell.org/package/Cabal-syntax

sudo dnf install ghc-Cabal-syntax
  • License: BSD-3-Clause
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: ghc
  • 27 dependencies
  • 2 provides
  • normalized package name match
  • Matched by: Ghc
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: ghc-Cabal-syntax from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment