Hooks into the cabal build phases.
Usage:
In your
.cabalfile, declarebuild-type: Hooks(with acabal-versiongreater than or equal to3.14),In your
.cabalfile, include acustom-setupstanza which declares the dependencies of yourSetupHooksmodule; this will usually contain a dependency on theCabal-hookspackage.Provide a
SetupHooks.hsmodule next to your.cabalfile; it must exportsetupHooks :: SetupHooks.
Constructors
SetupHooksconfigureHooks :: ConfigureHooksHooks into the configure phase.
buildHooks :: BuildHooksHooks into the build phase.
These hooks are relevant to any build-like phase, such as repl or haddock.
installHooks :: InstallHooksHooks into the copy/install phase.
Instances2Semigroup, Monoid
Semigroup SetupHooksDefined in Cabal-3.18.1.0 · Distribution.Simple.SetupHooks.InternalSetupHooks can be combined monoidally. This is useful to combine setup hooks defined by another package with your own package-specific hooks.
Warning: this Semigroup instance is not commutative.
Monoid SetupHooksDefined in Cabal-3.18.1.0 · Distribution.Simple.SetupHooks.Internal