# Install ghc@9.8 with Homebrew, dnf, apk, chocolatey, apt, MacPorts, Nix, pacman, zypper

Glorious Glasgow Haskell Compilation System. Version 9.8.4 via Homebrew; verified 2026-06-25.

## Install

```sh
sudo av install brew:ghc@9.8
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install ghc@9.8
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install ghc
```

  Evidence: MacPorts ports tree: lang/ghc/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- dnf (92%):

```sh
sudo dnf install ghc9.8
```

  Evidence: Fedora Rawhide package metadata: ghc9.8 from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst

- apk (92%):

```sh
sudo apk add ghc
```

  Evidence: Alpine Linux edge package indexes: ghc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install ghc
```

  Evidence: Debian stable package indexes: ghc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- Nix (92%):

```sh
nix profile install nixpkgs#ghc
```

  Evidence: nixpkgs package indexes: ghc from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix

- pacman (92%):

```sh
sudo pacman -S ghc
```

  Evidence: Arch Linux sync databases: ghc from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install ghc
```

  Evidence: openSUSE Tumbleweed package metadata: ghc from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

### Windows

- Chocolatey (92%):

```sh
choco install ghc
```

  Evidence: Chocolatey community package catalog: ghc from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','gawk'

## Package facts

- **Package key:** brew:ghc@9.8
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/ghc@9.8>
- **Version:** 9.8.4
- **Source summary:** Glorious Glasgow Haskell Compilation System
- **Homepage:** <https://haskell.org/ghc/>
- **Repository:** <https://gitlab.haskell.org/ghc/ghc>
- **Upstream docs:** <https://downloads.haskell.org/ghc/9.8.4/docs/users_guide>
- **License:** BSD-3-Clause AND MIT AND (LGPL-3.0-or-later OR GPL-2.0-or-later)
- **Source archive:** <https://downloads.haskell.org/~ghc/9.8.4/ghc-9.8.4-src.tar.xz>
- **Last updated:** 2026-06-25T13:37:43+02:00
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- ghc-9.8.4 (cli)
- ghc-pkg-9.8.4 (cli)
- ghci-9.8.4 (cli)
- haddock-ghc-9.8.4 (cli)
- hp2ps-ghc-9.8.4 (cli)
- hpc-ghc-9.8.4 (cli)
- hsc2hs-ghc-9.8.4 (cli)
- runghc-9.8.4 (cli)
- runhaskell-9.8.4 (cli)
- ghc-9.8.4 (alias)
- ghc-pkg-9.8.4 (alias)
- ghci-9.8.4 (alias)
- haddock-ghc-9.8.4 (alias)
- hp2ps-ghc-9.8.4 (alias)
- hpc-ghc-9.8.4 (alias)
- hsc2hs-ghc-9.8.4 (alias)
- runghc-9.8.4 (alias)
- runhaskell-9.8.4 (alias)

## Build dependencies

- autoconf
- automake
- python@3.14
- sphinx-doc
- xz

## Uses from macOS

- ncurses

## Install behavior

- Post-install hook: defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 9.8.4
- Package-manager updated: 2026-06-25
- Local data: ok
- Upstream repository: https://haskell.org/ghc/
- info: Release/tag comparison is only available for GitHub repositories.
## Project history and usage

The Homebrew `ghc@9.8` formula packages the GHC 9.8 branch of the Glasgow Haskell Compiler. It exists for projects and build environments that need that compiler generation rather than the unversioned Homebrew formula.

### Project history

GHC began at the University of Glasgow near the beginning of the 1990s as a government-funded academic research project. The compiler's design combined a batch compiler, an interactive interpreter, boot libraries, and a runtime system that made Haskell practical for both research and production code.

The GHC 9.8 branch is part of the stable-branch sequence described by the user guide. That versioning policy matters to downstream packages because even patchlevel upgrades can force recompilation of code built against older boot libraries.

### Adoption history

The broader GHC project became the center of Haskell tooling: Hackage libraries, Cabal, Stack, Haddock, Haskell Language Server, and GHCup all assume GHC as a common compiler target. A versioned Homebrew formula helps macOS users install a branch that matches a package set or CI matrix.

Homebrew lists `ghc@9.8` as a separate formula with the same Glasgow Haskell Compilation System description as the unversioned package. The batch input records 9.8.4-suffixed executables, showing the branch-specific command names provided by the package.

### How it is used

Practitioners use `ghc@9.8` for compiling, testing, and documenting projects pinned to the 9.8 branch. Version-suffixed commands such as `ghc-9.8.4`, `ghci-9.8.4`, `ghc-pkg-9.8.4`, and `haddock-ghc-9.8.4` make explicit branch selection possible in scripts.

GHCi usage follows the standard GHC workflow: load source files interactively, evaluate expressions at the prompt, configure startup behavior with `.ghci` files, and switch back to batch compilation for optimized builds.

### Why package nerds care

For package maintainers, `ghc@9.8` is valuable because compiler branches are not interchangeable implementation details. They carry specific boot libraries, supported extensions, warnings, optimization behavior, and generated interface compatibility that package bounds often encode.

### Timeline

- Early 1990s: GHC began as a Glasgow research project.
- 2007: The user guide documented GHC's even-numbered stable-branch versioning policy starting with GHC 6.8.
- 2023: GHC 9.8.1 was released as the first listed 9.8 release on the GHC download page.
- 2026 batch input: The Homebrew package record listed 9.8.4-suffixed executables.

### Related projects

- Cabal and Stack commonly coordinate GHC invocations for projects.
- Hackage package metadata often records compiler-version constraints.
- GHCup provides another official way to install selected GHC versions.

### Sources

- <https://downloads.haskell.org/ghc/9.8.4/docs/users_guide/ghci.html>
- <https://downloads.haskell.org/ghc/9.8.4/docs/users_guide/intro.html>
- <https://formulae.brew.sh/formula/ghc@9.8>
- <https://gitlab.haskell.org/ghc/ghc>
- <https://www.aosabook.org/en/v2/ghc.html>
- <https://www.haskell.org/ghc/>
- <https://www.haskell.org/ghc/download_ghc_9_8_1.html>


## Security Notes

No matching local secret-handling manifest was found for ghc@9.8. Nucleus package metadata is still published here so future coverage has a stable package URL.



## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: $XDG_CONFIG_HOME/ghc/ghci.conf, ~/.ghc/ghci.conf, ./.ghci
## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** ghc@9.8
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** yes
- **Disabled:** no
- **Keg Only:** yes
- **URL Keys:** stable

## Other Package-Manager Records

- dnf - ghc9.8 - 9.8.4-16.fc43: package manager index match | Fedora Rawhide package metadata: ghc9.8 from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Glasgow Haskell Compiler | https://haskell.org/ghc/
- dnf - ghc9.8-Cabal - 3.10.3.0-16.fc43: package manager index match | Fedora Rawhide package metadata: ghc9.8-Cabal from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Haskell Cabal library | https://hackage.haskell.org/package/Cabal
- dnf - ghc9.8-Cabal-devel - 3.10.3.0-16.fc43: package manager index match | Fedora Rawhide package metadata: ghc9.8-Cabal-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Haskell Cabal library development files | https://haskell.org/ghc/
- dnf - ghc9.8-Cabal-doc - 3.10.3.0-16.fc43: package manager index match | Fedora Rawhide package metadata: ghc9.8-Cabal-doc from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Haskell Cabal library documentation | https://haskell.org/ghc/
- dnf - ghc9.8-Cabal-prof - 3.10.3.0-16.fc43: package manager index match | Fedora Rawhide package metadata: ghc9.8-Cabal-prof from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Haskell Cabal profiling library | https://haskell.org/ghc/
- dnf - ghc9.8-Cabal-syntax - 3.10.3.0-16.fc43: package manager index match | Fedora Rawhide package metadata: ghc9.8-Cabal-syntax from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Haskell Cabal-syntax library | https://hackage.haskell.org/package/Cabal-syntax
- dnf - ghc9.8-Cabal-syntax-devel - 3.10.3.0-16.fc43: package manager index match | Fedora Rawhide package metadata: ghc9.8-Cabal-syntax-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Haskell Cabal-syntax library development files | https://haskell.org/ghc/
- dnf - ghc9.8-Cabal-syntax-doc - 3.10.3.0-16.fc43: package manager index match | Fedora Rawhide package metadata: ghc9.8-Cabal-syntax-doc from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Haskell Cabal-syntax library documentation | https://haskell.org/ghc/
- dnf - ghc9.8-Cabal-syntax-prof - 3.10.3.0-16.fc43: package manager index match | Fedora Rawhide package metadata: ghc9.8-Cabal-syntax-prof from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Haskell Cabal-syntax profiling library | https://haskell.org/ghc/
- dnf - ghc9.8-array - 0.5.8.0-16.fc43: package manager index match | Fedora Rawhide package metadata: ghc9.8-array from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Haskell array library | https://hackage.haskell.org/package/array
- dnf - ghc9.8-array-devel - 0.5.8.0-16.fc43: package manager index match | Fedora Rawhide package metadata: ghc9.8-array-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Haskell array library development files | https://haskell.org/ghc/
- dnf - ghc9.8-array-doc - 0.5.8.0-16.fc43: package manager index match | Fedora Rawhide package metadata: ghc9.8-array-doc from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Haskell array library documentation | https://haskell.org/ghc/
- dnf - ghc9.8-array-prof - 0.5.8.0-16.fc43: package manager index match | Fedora Rawhide package metadata: ghc9.8-array-prof from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Haskell array profiling library | https://haskell.org/ghc/
- dnf - ghc9.8-base - 4.19.2.0-16.fc43: package manager index match | Fedora Rawhide package metadata: ghc9.8-base from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Haskell base library | https://hackage.haskell.org/package/base
- dnf - ghc9.8-base-devel - 4.19.2.0-16.fc43: package manager index match | Fedora Rawhide package metadata: ghc9.8-base-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Haskell base library development files | https://haskell.org/ghc/
- dnf - ghc9.8-base-doc - 4.19.2.0-16.fc43: package manager index match | Fedora Rawhide package metadata: ghc9.8-base-doc from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Haskell base library documentation | https://haskell.org/ghc/


## Related links

- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Homebrew utility packages](https://www.automicvault.com/pkg/brew-utility-packages/) - Matched curated package taxonomy and local package facts.
- [autoconf](https://www.automicvault.com/pkg/brew/autoconf/) - Build dependency declared by Homebrew.
- [automake](https://www.automicvault.com/pkg/brew/automake/) - Build dependency declared by Homebrew.
- [python@3.14](https://www.automicvault.com/pkg/brew/python-3-14/) - Build dependency declared by Homebrew.
- [sphinx-doc](https://www.automicvault.com/pkg/brew/sphinx-doc/) - Build dependency declared by Homebrew.
- [ghc](https://www.automicvault.com/pkg/brew/ghc/) - Package name indicates the same formula family.
- [ghc@9.10](https://www.automicvault.com/pkg/brew/ghc-9-10/) - Package name indicates the same formula family.
- [ghc@9.12](https://www.automicvault.com/pkg/brew/ghc-9-12/) - Package name indicates the same formula family.
- [ghc@9.6](https://www.automicvault.com/pkg/brew/ghc-9-6/) - Package name indicates the same formula family.

## Combined YAML source

View the package source record on GitHub. [combined/ghc@9.8.yml](https://github.com/automic-vault/db/blob/main/combined/ghc@9.8.yml)


## Sources

- Nucleus package database
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
