Automic VaultAutomic Vault

brew

Installer ghc avec Homebrew, apk, chocolatey, apt, dnf, MacPorts, Nix, pacman, zypper

Consultez les chemins d'installation, exécutables, métadonnées et notes de sécurité de ghc pour les workflows d'agents IA.

installation

Commandes d'installation supplémentaires

macOS

Homebrewvérifié · 100%
brew install ghc

local Homebrew formula metadata

MacPortsvérifié · 94%
sudo port install ghc

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

Linux

Alpine Linux apkvérifié · 92%
sudo apk add ghc

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

Debian aptvérifié · 92%
sudo apt install ghc

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

Fedora dnfvérifié · 92%
sudo dnf install ghc

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

Nixvérifié · 92%
nix profile install nixpkgs#ghc

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

Arch Linux pacmanvérifié · 92%
sudo pacman -S ghc

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

openSUSE zyppervérifié · 92%
sudo zypper install ghc

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

aperçu

Résumé du paquet

Glorious Glasgow Haskell Compilation System

Commandes et alias

  • 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

historique

Historique du projet et usages

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.

Historique du projet

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.

Historique d'adoption

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.

Modes d'utilisation

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.

Pourquoi les passionnés de paquets s'y intéressent

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.

Chronologie

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

posture de sécurité

Niveau de risque : yellow

compiler and runtime ecosystem.

Classificateur de risque

risque yellow · confiance élevé · runtime

Pourquoi

  • compiler and runtime ecosystem

Signaux

  • override:ghc

Comportement d'installation

  • Homebrew déclare un hook post-install pour cette formule.
  • Les métadonnées de bottle Homebrew sont disponibles pour 6 plateformes.
  • S’installe avec 1 dépendances d’exécution.
  • Les métadonnées de compilation listent 5 dépendances de compilation.

Revue recommandée

Avant une utilisation sans surveillance par un agent, vérifiez si l'outil lit des identifiants en clair, écrit un état distant, publie des artefacts ou lance des plugins.

exécutables

Exécutables installés

CommandeTypeExpositionNote
ghccliexécutable global
ghc-9.14.1cliexécutable global
ghc-pkgcliexécutable global
ghc-pkg-9.14.1cliexécutable global
ghcicliexécutable global
ghci-9.14.1cliexécutable global
haddockcliexécutable global
haddock-ghc-9.14.1cliexécutable global
hp2pscliexécutable global
hp2ps-ghc-9.14.1cliexécutable global
hpccliexécutable global
hpc-ghc-9.14.1cliexécutable global
hsc2hscliexécutable global
hsc2hs-ghc-9.14.1cliexécutable global
runghccliexécutable global
runghc-9.14.1cliexécutable global
runhaskellcliexécutable global
runhaskell-9.14.1cliexécutable global

fraîcheur

Version et fraîcheur

Ces signaux séparent l'âge de génération de la page, l'activité du gestionnaire de paquets et la comparaison avec les versions amont. Un retard de version n'est signalé que lorsqu'une URL de preuve et des versions comparables sont présentes.

page générée2026-07-10
version du gestionnaire9.14.1
gestionnaire mis à jour2026-06-25
données localesOK
amontnot checked
dernière version détectéenon détecté

https://haskell.org/ghc/

métadonnées d'installation

Métadonnées du paquet

Clé du paquetbrew:ghc
Version9.14.1
Gestionnaire de paquetsHomebrew
Page du gestionnaire de paquetshttps://formulae.brew.sh/formula/ghc
Page d'accueilhttps://haskell.org/ghc/
Dépôthttps://gitlab.haskell.org/ghc/ghc
Docs amonthttps://downloads.haskell.org/ghc/9.14.1/docs/users_guide
LicenceBSD-3-Clause
Archive sourcehttps://downloads.haskell.org/~ghc/9.14.1/ghc-9.14.1-src.tar.xz
Dernière mise à jour2026-06-25T13:37:42+02:00
Pulseupdated
Dépendancesgmp
Dépendances de compilationautoconf, automake, python@3.14, sphinx-doc, xz
Bibliothèques fournies par macOSlibffi, ncurses
Bouteilledisponible (sur arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
post-install Homebrewdéfini
Serviceaucun déclaré

faits du registre

Détails de la base source

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

correspondances dans les bases sources

Autres enregistrements de gestionnaires de paquets

Les correspondances proviennent d’index externes de gestionnaires de paquets et restent séparées des liens de paquets Automic Vault locaux.

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 Dépendances
  • 32 fournit
  • 5 dépendances optionnelles
  • normalized package name match
  • Correspondance par : 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 Dépendances
  • 32 fournit
  • normalized package name match
  • Correspondance par : 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 Dépendances
  • 32 fournit
  • normalized package name match
  • Correspondance par : 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
  • Correspondance par : 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 Dépendances
  • 32 fournit
  • 4 dépendances optionnelles
  • normalized package name match
  • Correspondance par : 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 Dépendances
  • 32 fournit
  • normalized package name match
  • Correspondance par : 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 Dépendances
  • 32 fournit
  • normalized package name match
  • Correspondance par : 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 Dépendances
  • 1 fournit
  • normalized package name match
  • Correspondance par : 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 Dépendances
  • normalized package name match
  • Correspondance par : 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
  • Correspondance par : 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 Dépendances
  • 2 fournit
  • normalized package name match
  • Correspondance par : 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 Dépendances
  • 2 fournit
  • normalized package name match
  • Correspondance par : 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 Dépendances
  • 3 fournit
  • normalized package name match
  • Correspondance par : 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 Dépendances
  • 1 fournit
  • normalized package name match
  • Correspondance par : 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 Dépendances
  • 2 fournit
  • normalized package name match
  • Correspondance par : 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 Dépendances
  • 2 fournit
  • normalized package name match
  • Correspondance par : 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

piste source

Généré depuis les données du dépôt

Cette page est servie par av-web depuis l'artéfact SQLite privé des paquets généré par scripts/generate-pkg-sqlite.py.

Sources utilisées

  • 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