pkg.sopackage field notes

brew / Rang 1269

ghc mit Homebrew installieren

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

Installation

Weitere Installationsbefehle

macOS

Homebrewverifiziert · 100%
brew install ghc

provider-native install command

Ü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

  • Es wurden keine Homebrew-Bottle-Metadaten erfasst.

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
ghcExecutableindexiertes ExecutableAus dem lokalen Executable-Index erkannt.
ghc-9.14.1Executableindexiertes ExecutableAus dem lokalen Executable-Index erkannt.
ghc-pkgExecutableindexiertes ExecutableAus dem lokalen Executable-Index erkannt.
ghc-pkg-9.14.1Executableindexiertes ExecutableAus dem lokalen Executable-Index erkannt.
ghciExecutableindexiertes ExecutableAus dem lokalen Executable-Index erkannt.
ghci-9.14.1Executableindexiertes ExecutableAus dem lokalen Executable-Index erkannt.
haddockExecutableindexiertes ExecutableAus dem lokalen Executable-Index erkannt.
haddock-ghc-9.14.1Executableindexiertes ExecutableAus dem lokalen Executable-Index erkannt.
hp2psExecutableindexiertes ExecutableAus dem lokalen Executable-Index erkannt.
hp2ps-ghc-9.14.1Executableindexiertes ExecutableAus dem lokalen Executable-Index erkannt.
hpcExecutableindexiertes ExecutableAus dem lokalen Executable-Index erkannt.
hpc-ghc-9.14.1Executableindexiertes ExecutableAus dem lokalen Executable-Index erkannt.
hsc2hsExecutableindexiertes ExecutableAus dem lokalen Executable-Index erkannt.
hsc2hs-ghc-9.14.1Executableindexiertes ExecutableAus dem lokalen Executable-Index erkannt.
runghcExecutableindexiertes ExecutableAus dem lokalen Executable-Index erkannt.
runghc-9.14.1Executableindexiertes ExecutableAus dem lokalen Executable-Index erkannt.
runhaskellExecutableindexiertes ExecutableAus dem lokalen Executable-Index erkannt.
runhaskell-9.14.1Executableindexiertes ExecutableAus dem lokalen Executable-Index erkannt.

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-08-03
Manager-Version9.14.1
Manager aktualisiert2026-07-30
lokale Datenunbekannt
Upstreamnicht verfügbar
neueste erkannte Versionnicht erkannt
  • OKEs wurden keine Aktualitätswarnungen generiert.

Installationsmetadaten

Paketmetadaten

Paketschlüsselbrew:ghc
Version9.14.1
PaketmanagerHomebrew
Homepagehttps://haskell.org/ghc/
Zuletzt aktualisiert2026-07-30T14:08:05-04:00
Pulseupdated
Bottlenicht erfasst
Dienstkeiner deklariert

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
  • curated package history
  • pkgdb category and tag curation