About

Metadata

  • Last updated , by wz1000
  • License BSD-3-Clause
  • Categories Development
  • Maintained by: glasgow-haskell-users@haskell.org

  • Lottery factor: 4

Links

Installation

This package uses the Custom cabal build type

Package Flags

Use the -f option with cabal commands to enable flags

    internal-interpreter (off by default)

    Build with internal interpreter support.

    dynamic-system-linker (on by default)

    The system can load dynamic code. This is not the case for musl.

    build-tool-depends (on by default)

    Use build-tool-depends

    with-libzstd (off by default)
    static-libzstd (off by default)
    hadrian-stage0 (off by default)

    Enable if compiling the stage0 compiler with hadrian

    bootstrap (off by default)

    Enabled when building the stage1 compiler in order to vendor the in-tree `ghc-boot-th` library, and through that the in-tree TH AST defintions from `ghc-internal`. See Note [Bootstrapping Template Haskell]

Readme

GHC's functionality can be useful for more things than just compiling Haskell programs. Important use cases are programs that analyse (and perhaps transform) Haskell code. Others include loading Haskell code dynamically in a GHCi-like manner. For this reason, a lot of GHC's functionality is made available through this package.

See https://gitlab.haskell.org/ghc/ghc/-/wikis/commentary/compiler for more information.

This package is not PVP-compliant.

This package directly exposes GHC internals, which can and do change with every release.