HORIZON HASKELLDocslts/ghc-10.0.xfc4e5982026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 10.0.0.20260917 · lts/ghc-10.0.x · fc4e598 · 2026-10-11

ModuleCabal-3.18.1.0Haskell2010

Distribution.Simple.Register

This module deals with registering and unregistering packages. There are a couple ways it can do this, one is to do it directly. Another is to generate a script that can be run later to do it. The idea here being that the user is shielded from the details of what command to use for package registration for a particular compiler. In practice this aspect was not especially popular so we also provide a way to simply generate the package registration file which then must be manually passed to ghc-pkg. It is possible to generate registration information for where the package is to be installed, or alternatively to register the package in place in the build tree. The latter is occasionally handy, and will become more important when we try to build multi-package systems.

This module does not delegate anything to the per-compiler modules but just mixes it all in this module, which is rather unsatisfactory. The script generation and the unregister feature are not well used or tested.

  • 1 type
  • 17 values
  • PackageCabal-3.18.1.0
  • Exports18
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceRegister.hs
datadata RegisterOptions
#

Additional variations in the behaviour for register.

Constructors

  • RegisterOptions
    • registerAllowOverwrite :: Bool

      Allows re-registering / overwriting an existing package

    • registerMultiInstance :: Bool

      Insist on the ability to register multiple instances of a single version of a single package.

    • registerSuppressFilesCheck :: Bool

      Require that no checks are performed on the existence of package files mentioned in the registration info. This must be used if registering prior to putting the files in their final place. This will fail if the hc-pkg does not support it, see suppressFilesCheck.