OpenBSD Handbook

OpenBSD 7.9 release · amd64 · Generated 2026-09-09

ghc-9.10.3

compiler for the functional language Haskell

Back to search · Project homepage

Description

The Glasgow Haskell Compiler is a state-of-the-art, open source, compiler and interactive environment for the functional language Haskell. Highlights: * GHC supports the entire Haskell 98 language plus a wide variety of extensions. * GHC works on several platforms including Windows and a few varieties of Unix, and a few different processor architectures. There are detailed instructions for porting GHC to a new platform. Which doesn't work. * GHC has extensive optimisation capabilities, including inter-module optimisation. * GHC compiles Haskell code either by using an intermediate C compiler (GCC), or by generating native code on most currently supported platforms. The interactive environment compiles Haskell to bytecode, and supports execution of mixed bytecode/compiled programs. * Profiling is supported, both by time/allocation and various kinds of heap profiling. * GHC comes with a minimal range of libraries, but a wide range of additional libraries are available as separate packages, including the full set of the Haskell Platform.

Package information

Ports path
lang/ghc
Package architecture
amd64
Maintainer
The OpenBSD ports mailing-list <ports@openbsd.org>
Categories
lang, devel, lang/python
Available flavors
None listed
Only for architectures
amd64, arm64

These are ports metadata. Binary availability depends on the release, architecture and mirror. Build and test dependencies are not an installation checklist.

Direct dependencies

Library

Build

Test

Used by (15 dependency relationships)

Includes library, runtime, build and test relationships. Results load 100 at a time.

Installing and updating packages · Package details as JSON