ghc

Install command:
brew install ghc

Also known as: ghc@9, ghc@9.14

Glorious Glasgow Haskell Compilation System

https://haskell.org/ghc/

License: BSD-3-Clause

Development: Pull requests

Formula JSON API: /api/formula/ghc.json

Formula code: ghc.rb on GitHub

Bottle (binary package) installation support provided for:

macOS on
Apple Silicon
golden gate ✅
tahoe ✅
sequoia ✅
sonoma ✅
macOS on
Intel
sonoma ✅
Linux ARM64 ✅
x86_64 ✅

Current versions:

stable ✅ 9.14.1
head ⚡️ HEAD

Other versions:

ghc@9.12 9.12.4 Glorious Glasgow Haskell Compilation System
ghc@9.10 9.10.3 Glorious Glasgow Haskell Compilation System
ghc@9.8 9.8.4 Glorious Glasgow Haskell Compilation System
ghc@9.6 9.6.7 Glorious Glasgow Haskell Compilation System
ghc@9.4 9.4.8 Glorious Glasgow Haskell Compilation System

Depends on:

gmp 6.3.0 GNU multiple precision arithmetic library

Depends on when building from source:

autoconf 2.73 Automatic configure script builder
automake 1.20 Tool for generating GNU Standards-compliant Makefiles
python@3.15 3.15.2 Interpreted, interactive, object-oriented programming language
sphinx-doc 9.2.0 Tool to create intelligent and beautiful documentation
xz 5.8.4 General-purpose data compression with high compression ratio

Uses from macOS: m4 (build), libffi, ncurses

Binaries: 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

GitHub Packages downloads:

Last 30 days14,816
Downloads501,629
Analytics install events (30 days)2,992
Downloads / install events (30 days)5.0×

Source: GitHub Packages, fetched 2026-11-12T00:53:58Z. Analytics dates: 2026-10-13 to 2026-11-12. Totals exclude downloads from Bintray before the migration to GitHub Packages. Downloads and install attempts measure different things; the difference does not count analytics opt-outs. Definitions and limitations.

Analytics:

30 days90 days365 days
Installs2,9907,58817,751
Installs (--HEAD)2414
Installs on Request2586454,077
Installs on Request (--HEAD)2414
Build Errors28
Build Errors (--HEAD)2