Automic VaultAutomic Vault

brew

ghc を Homebrew, apk, chocolatey, apt, dnf, MacPorts, Nix, pacman, zypper でインストール

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

インストール

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

macOS

Homebrew確認済み · 100%
brew install ghc

local Homebrew formula metadata

MacPorts確認済み · 94%
sudo port install ghc

MacPorts ports tree · lang/ghc/Portfile · ソース: api.github.com

Linux

Alpine Linux apk確認済み · 92%
sudo apk add ghc

Alpine Linux edge package indexes · ghc · ソース: dl-cdn.alpinelinux.org

Debian apt確認済み · 92%
sudo apt install ghc

Debian stable package indexes · ghc · ソース: deb.debian.org

Fedora dnf確認済み · 92%
sudo dnf install ghc

Fedora Rawhide package metadata · ghc · ソース: dl.fedoraproject.org

Nix確認済み · 92%
nix profile install nixpkgs#ghc

nixpkgs package indexes · ghc · ソース: raw.githubusercontent.com

Arch Linux pacman確認済み · 92%
sudo pacman -S ghc

Arch Linux sync databases · ghc · ソース: geo.mirror.pkgbuild.com

openSUSE zypper確認済み · 92%
sudo zypper install ghc

openSUSE Tumbleweed package metadata · ghc · ソース: download.opensuse.org

概要

パッケージ概要

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 はこの formula に post-install フックを宣言しています。
  • Homebrew bottle メタデータは 6 個のプラットフォームターゲットで利用できます。
  • 1 件の実行時依存関係とともにインストールされます。
  • ビルドメタデータには 5 件のビルド依存関係があります。

推奨レビュー

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

実行可能ファイル

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

コマンド種類公開範囲メモ
ghccliグローバル実行可能ファイル
ghc-9.14.1cliグローバル実行可能ファイル
ghc-pkgcliグローバル実行可能ファイル
ghc-pkg-9.14.1cliグローバル実行可能ファイル
ghcicliグローバル実行可能ファイル
ghci-9.14.1cliグローバル実行可能ファイル
haddockcliグローバル実行可能ファイル
haddock-ghc-9.14.1cliグローバル実行可能ファイル
hp2pscliグローバル実行可能ファイル
hp2ps-ghc-9.14.1cliグローバル実行可能ファイル
hpccliグローバル実行可能ファイル
hpc-ghc-9.14.1cliグローバル実行可能ファイル
hsc2hscliグローバル実行可能ファイル
hsc2hs-ghc-9.14.1cliグローバル実行可能ファイル
runghccliグローバル実行可能ファイル
runghc-9.14.1cliグローバル実行可能ファイル
runhaskellcliグローバル実行可能ファイル
runhaskell-9.14.1cliグローバル実行可能ファイル

鮮度

バージョンと鮮度

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

ページ生成日2026-07-10
マネージャ版9.14.1
マネージャ更新日2026-06-25
ローカルデータOK
上流not checked
検出された最新未検出

https://haskell.org/ghc/

インストールメタデータ

パッケージメタデータ

パッケージキーbrew:ghc
バージョン9.14.1
パッケージマネージャHomebrew
パッケージマネージャページhttps://formulae.brew.sh/formula/ghc
ホームページhttps://haskell.org/ghc/
リポジトリhttps://gitlab.haskell.org/ghc/ghc
上流ドキュメントhttps://downloads.haskell.org/ghc/9.14.1/docs/users_guide
ライセンスBSD-3-Clause
ソースアーカイブhttps://downloads.haskell.org/~ghc/9.14.1/ghc-9.14.1-src.tar.xz
最終更新2026-06-25T13:37:42+02:00
Pulseupdated
依存関係gmp
ビルド依存関係autoconf, automake, python@3.14, sphinx-doc, xz
macOS 提供ライブラリlibffi, ncurses
Bottle利用可能 (対象 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install定義済み
サービス宣言なし

レジストリ情報

ソースデータベース詳細

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

ソースデータベース一致

他のパッケージマネージャ記録

一致は外部パッケージマネージャインデックスから取得され、ローカルの Automic Vault パッケージリンクとは分けて表示されます。

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 依存関係
  • 32 提供
  • 5 任意依存関係
  • normalized package name match
  • 一致条件: 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 依存関係
  • 32 提供
  • normalized package name match
  • 一致条件: 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 依存関係
  • 32 提供
  • normalized package name match
  • 一致条件: 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
  • 一致条件: 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 依存関係
  • 32 提供
  • 4 任意依存関係
  • normalized package name match
  • 一致条件: 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 依存関係
  • 32 提供
  • normalized package name match
  • 一致条件: 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 依存関係
  • 32 提供
  • normalized package name match
  • 一致条件: 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 依存関係
  • 1 提供
  • normalized package name match
  • 一致条件: 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 依存関係
  • normalized package name match
  • 一致条件: 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
  • 一致条件: 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 依存関係
  • 2 提供
  • normalized package name match
  • 一致条件: 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 依存関係
  • 2 提供
  • normalized package name match
  • 一致条件: 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 依存関係
  • 3 提供
  • normalized package name match
  • 一致条件: 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 依存関係
  • 1 提供
  • normalized package name match
  • 一致条件: 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 依存関係
  • 2 提供
  • normalized package name match
  • 一致条件: 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 依存関係
  • 2 提供
  • normalized package name match
  • 一致条件: 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

ソース経路

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

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

使用ソース

  • 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