Automic VaultAutomic Vault

brew

ghc mit Homebrew, apk, chocolatey, apt, dnf, MacPorts, Nix, pacman, zypper installieren

Prüfe Installationswege, Executables, Metadaten und Sicherheitshinweise für ghc in AI-Agent-Workflows.

Installation

Weitere Installationsbefehle

macOS

Homebrewverifiziert · 100%
brew install ghc

local Homebrew formula metadata

MacPortsverifiziert · 94%
sudo port install ghc

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

Linux

Alpine Linux apkverifiziert · 92%
sudo apk add ghc

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

Debian aptverifiziert · 92%
sudo apt install ghc

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

Fedora dnfverifiziert · 92%
sudo dnf install ghc

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

Nixverifiziert · 92%
nix profile install nixpkgs#ghc

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

Arch Linux pacmanverifiziert · 92%
sudo pacman -S ghc

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

openSUSE zypperverifiziert · 92%
sudo zypper install ghc

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

Überblick

Paketzusammenfassung

Glorious Glasgow Haskell Compilation System

Befehle und Aliase

  • 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

Verlauf

Projektgeschichte und Nutzung

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.

Projektgeschichte

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.

Adoptionsgeschichte

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.

Wie es verwendet wird

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.

Warum Paket-Nerds sich dafür interessieren

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.

Zeitleiste

  • 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.

Sicherheitslage

Risikostufe: yellow

compiler and runtime ecosystem.

Risikoklassifikator

yellow Risiko · hoch Konfidenz · runtime

Warum

  • compiler and runtime ecosystem

Signale

  • override:ghc

Installationsverhalten

  • Homebrew deklariert einen Post-install-Hook für diese Formel.
  • Homebrew-Bottle-Metadaten sind für 6 Plattformziele verfügbar.
  • Installiert mit 1 Laufzeitabhängigkeiten.
  • Build-Metadaten listen 5 Build-Abhängigkeiten.

Empfohlene Prüfung

Prüfe vor unbeaufsichtigter Agent-Nutzung, ob das Tool Klartext-Credentials liest, Remote-Zustand schreibt, Artefakte veröffentlicht oder Plugins ausführt.

Executables

Installierte Executables

BefehlArtSichtbarkeitHinweis
ghccliglobales Executable
ghc-9.14.1cliglobales Executable
ghc-pkgcliglobales Executable
ghc-pkg-9.14.1cliglobales Executable
ghcicliglobales Executable
ghci-9.14.1cliglobales Executable
haddockcliglobales Executable
haddock-ghc-9.14.1cliglobales Executable
hp2pscliglobales Executable
hp2ps-ghc-9.14.1cliglobales Executable
hpccliglobales Executable
hpc-ghc-9.14.1cliglobales Executable
hsc2hscliglobales Executable
hsc2hs-ghc-9.14.1cliglobales Executable
runghccliglobales Executable
runghc-9.14.1cliglobales Executable
runhaskellcliglobales Executable
runhaskell-9.14.1cliglobales Executable

Aktualität

Version und Aktualität

Diese Signale trennen das Alter der Seitengenerierung, Aktivität des Paketmanagers und Upstream-Release-Vergleich. Versionsrückstand wird nur gemeldet, wenn eine Evidenz-URL und vergleichbare Versionen vorhanden sind.

Seite generiert2026-07-10
Manager-Version9.14.1
Manager aktualisiert2026-06-25
lokale DatenOK
Upstreamnot checked
neueste erkannte Versionnicht erkannt

https://haskell.org/ghc/

Installationsmetadaten

Paketmetadaten

Paketschlüsselbrew:ghc
Version9.14.1
PaketmanagerHomebrew
Paketmanager-Seitehttps://formulae.brew.sh/formula/ghc
Homepagehttps://haskell.org/ghc/
Repositoryhttps://gitlab.haskell.org/ghc/ghc
Upstream-Dokumentationhttps://downloads.haskell.org/ghc/9.14.1/docs/users_guide
LizenzBSD-3-Clause
Quellarchivhttps://downloads.haskell.org/~ghc/9.14.1/ghc-9.14.1-src.tar.xz
Zuletzt aktualisiert2026-06-25T13:37:42+02:00
Pulseupdated
Abhängigkeitengmp
Build-Abhängigkeitenautoconf, automake, python@3.14, sphinx-doc, xz
Von macOS bereitgestellte Bibliothekenlibffi, ncurses
Bottleverfügbar (auf arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-installdefiniert
Dienstkeiner deklariert

Registry-Fakten

Details aus der Quelldatenbank

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-Datenbank-Treffer

Andere Paketmanager-Einträge

Treffer stammen aus externen Paketmanager-Indizes und bleiben von lokalen Automic-Vault-Paketlinks getrennt.

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 Abhängigkeiten
  • 32 stellt bereit
  • 5 optionale Abhängigkeiten
  • normalized package name match
  • Abgeglichen nach: 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 Abhängigkeiten
  • 32 stellt bereit
  • normalized package name match
  • Abgeglichen nach: 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 Abhängigkeiten
  • 32 stellt bereit
  • normalized package name match
  • Abgeglichen nach: 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
  • Abgeglichen nach: 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 Abhängigkeiten
  • 32 stellt bereit
  • 4 optionale Abhängigkeiten
  • normalized package name match
  • Abgeglichen nach: 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 Abhängigkeiten
  • 32 stellt bereit
  • normalized package name match
  • Abgeglichen nach: 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 Abhängigkeiten
  • 32 stellt bereit
  • normalized package name match
  • Abgeglichen nach: 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 Abhängigkeiten
  • 1 stellt bereit
  • normalized package name match
  • Abgeglichen nach: 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 Abhängigkeiten
  • normalized package name match
  • Abgeglichen nach: 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
  • Abgeglichen nach: 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 Abhängigkeiten
  • 2 stellt bereit
  • normalized package name match
  • Abgeglichen nach: 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 Abhängigkeiten
  • 2 stellt bereit
  • normalized package name match
  • Abgeglichen nach: 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 Abhängigkeiten
  • 3 stellt bereit
  • normalized package name match
  • Abgeglichen nach: 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 Abhängigkeiten
  • 1 stellt bereit
  • normalized package name match
  • Abgeglichen nach: 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 Abhängigkeiten
  • 2 stellt bereit
  • normalized package name match
  • Abgeglichen nach: 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 Abhängigkeiten
  • 2 stellt bereit
  • normalized package name match
  • Abgeglichen nach: 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

Quellspur

Aus Repository-Daten generiert

Diese Seite wird von av-web aus dem privaten Paket-SQLite-Artefakt bereitgestellt, das scripts/generate-pkg-sqlite.py erstellt.

Verwendete Quellen

  • 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