pkg.sopackage field notes

brew / 順位 1269

ghc を Homebrew でインストール

ghc のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

インストール

追加のインストールコマンド

macOS

Homebrew確認済み · 100%
brew install ghc

provider-native install command

概要

パッケージ概要

Glorious Glasgow Haskell Compilation System

コマンドとエイリアス

  • 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

履歴

プロジェクトの歴史と使われ方

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.

プロジェクトの歴史

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.

採用の歴史

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.

使われ方

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.

パッケージ好きにとっての重要性

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.

タイムライン

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

セキュリティ状態

リスクレベル: yellow

compiler and runtime ecosystem.

リスク分類器

リスク yellow · 信頼度 高 · runtime

理由

  • compiler and runtime ecosystem

信号

  • override:ghc

インストール挙動

  • Homebrew bottle メタデータは記録されていません。

推奨レビュー

エージェントに無人実行させる前に、このツールが平文の認証情報を読むか、リモート状態を書き込むか、成果物を公開するか、プラグインを起動するかを確認してください。

実行可能ファイル

インストールされる実行可能ファイル

コマンド種類公開範囲メモ
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実行可能ファイルインデックス済み実行可能ファイルローカル実行可能ファイルインデックスから検出されました。

鮮度

バージョンと鮮度

これらの信号は、ページ生成時期、パッケージマネージャの活動、上流リリース比較を分けて示します。バージョン遅れは、証拠 URL と比較可能なバージョンがある場合だけ警告されます。

ページ生成日2026-08-03
マネージャ版9.14.1
マネージャ更新日2026-07-30
ローカルデータ不明
上流利用不可
検出された最新未検出
  • OK鮮度警告は生成されていません。

インストールメタデータ

パッケージメタデータ

パッケージキーbrew:ghc
バージョン9.14.1
パッケージマネージャHomebrew
ホームページhttps://haskell.org/ghc/
最終更新2026-07-30T14:08:05-04:00
Pulseupdated
Bottle未記録
サービス宣言なし

ソース経路

リポジトリデータから生成

このページは scripts/generate-pkg-sqlite.py が生成した非公開のパッケージ SQLite アーティファクトから av-web によって提供されます。

使用ソース

  • Geiger risk classifier
  • Nucleus package database
  • curated package history
  • pkgdb category and tag curation