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

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

Modulehooks-exe-3.18Haskell2010

Distribution.Client.SetupHooks.CallHooksExe

  • 7 values
  • Packagehooks-exe-3.18
  • Exports7
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceCallHooksExe.hs
valuecallHooksExe
  1. :: HookIO inputs outputs
  2. => Verbosity
  3. -> FilePath

    path to hooks executable

  4. -> String

    name of the hook to run

  5. -> inputs

    argument to the hook

  6. -> IO outputs
#

Call an external hooks executable in order to execute a Cabal Setup hook.

Construct a SetupHooks that runs the hooks of the external hooks executable at the given path through the CLI.

This should only be used at the final step of compiling a package, when we have all the hooks in hand. The SetupHooks that are returned by this function cannot be combined with any other SetupHooks; they must directly be used to build the package.