@hackage ghc9.12.1

The GHC API

  • Installation

    Custom

  • Dependencies (21)

  • Dependents (161)

    @hackage/hls-explicit-fixity-plugin, @hackage/protolude, @hackage/hhp, @cardano/plutus-tx-plugin, @hackage/hls-hlint-plugin, @hackage/ghc-exactprint, Show all…
  • Package 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]

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.