# ghc/ghc

Mirror of the Glasgow Haskell Compiler. Please submit issues and patches to GHC's Gitlab instance (https://gitlab.haskell.org/ghc/ghc). First time contributors are encouraged to get started with the newcomers info (https://gitlab.haskell.org/ghc/ghc/wikis/contributing).

Repository: https://github.com/ghc/ghc
Canonical: https://ross.abutalabs.com/products/ghc
Homepage: http://www.haskell.org/ghc/
Language: Haskell
License: NOASSERTION
License Family: other
Last push: 2026-08-26T20:31:03+00:00

## Health v2 (maintenance only)
Score: 77/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 35, longevity 100
- inputs: {"age_days": 5632, "days_push": 7, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3275, forks 738 (observed 2026-08-28T04:07:53.426996+00:00)

## What it is
The Glasgow Haskell Compiler (GHC), the state-of-the-art open-source compiler and interactive environment (GHCi) for the Haskell functional programming language. It compiles Haskell to native code or via LLVM, supports the full Haskell 2010 standard plus many language extensions, and ships with a rich set of libraries.

## Use cases
- compile haskell programs to native code
- interactive haskell repl for evaluating expressions
- profile haskell program time and memory usage
- use language extensions like template haskell
- write concurrent haskell programs with stm
- cross-compile haskell to webassembly
- learn functional programming in haskell

## When to choose
- you are writing or compiling Haskell code and need the reference compiler
- you need GHCi for interactive evaluation, debugging, and experimentation
- you need high-performance native compilation with strong optimization and SMP parallelism
- you want access to the full Haskell ecosystem on Hackage

## When to avoid
- you are not programming in Haskell
- you want a lightweight or fast-compiling alternative compiler for simple scripts
- you need a different language's toolchain entirely

## Facets
- artifact type: cli-tool
- maturity: active
- function: compiler, interpreter, programming-language, concurrency, developer-tools
- domain: programming-languages, compilers, developer-tools
- platform: windows, cross-platform, cli
- tags: haskell, ghc, ghci, functional-programming, llvm-backend, stm, profiling, repl, command-line, linux, macos

## Member repositories
- ghc/ghc (main) score 77

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:53.426996+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:43:22.767798+00:00, confidence not recorded.
  - readme: https://github.com/ghc/ghc (fetched 2026-08-28T04:07:53.426996+00:00, sha fd87d15e66de)
  - homepage: http://www.haskell.org/ghc/ (fetched 2026-08-29T09:36:28.296294+00:00, sha d4cf8e29acd4)
  - site_page: https://downloads.haskell.org/ghc/latest/docs/users_guide (fetched 2026-08-29T09:36:28.305496+00:00, sha 83fdb8fc3a4b)
  - site_page: https://downloads.haskell.org/ghc/latest/docs/html/users_guide/exts.html (fetched 2026-08-29T09:36:28.308553+00:00, sha 85c3fd3253f0)
  - site_page: https://hackage.haskell.org/package/base-4.18.0.0/docs/Control-Concurrent.html (fetched 2026-08-29T09:36:28.310298+00:00, sha a9705a8ee399)
  - site_page: https://downloads.haskell.org/~ghc/latest/docs/html/users_guide/using-concurrent.html (fetched 2026-08-29T09:36:28.312834+00:00, sha 28642ca27d82)
  - site_page: https://downloads.haskell.org/~ghc/latest/docs/html/users_guide/using-optimisation.html (fetched 2026-08-29T09:36:28.314774+00:00, sha 2af7cc52b191)
  - site_page: https://downloads.haskell.org/~ghc/latest/docs/html/users_guide/ghci.html (fetched 2026-08-29T09:36:28.336219+00:00, sha 7bdd792874b6)
  - site_page: https://downloads.haskell.org/~ghc/latest/docs/html/users_guide/profiling.html (fetched 2026-08-29T09:36:28.341272+00:00, sha f4db0a3be523)
  - site_page: https://downloads.haskell.org/~ghc/latest/docs/html/libraries/index.html (fetched 2026-08-29T09:36:28.344845+00:00, sha 4b7f1bdc9620)
- Data as of 2026-08-30T08:39:29.467469+00:00.
