callHooksExe Call an external hooks executable in order to execute a Cabal Setup hook.
:: a typeCtrl KGHC 10.0.0.20260917 · lts/ghc-10.0.x · aa25b89 · 2026-10-10
Modulehooks-exe-3.18Haskell2010
callHooksExe 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.
The ABI of an external hooks executable.
This information is used to handshake before further communication, in order to avoid a cascade of errors with mismatched Binary instances.
The SetupHooks associated to a particular BuildType.
*Warning:** for build-type: Hooks, this does not include the pre-build
hooks. Those can be retrieved with buildTypePreBuildHooks.
The pre-build hooks obtained by communication with an external hooks executable.
runExternalPreBuildRules :: VerbosityHandles-> FilePathpath to external hooks executable
-> PreBuildComponentInputs-> IO [MonitorFilePath]Run pre-build rules coming from an external hooks executable at the given filepath.
Note that executeRulesUserOrSystem handles recompilation checking, only re-running rules that are stale.
The path to the external hooks executable.