forked from haskell/cabal
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request haskell#9961 from haskell/mergify/bp/3.12/pr-9950
Reinstate 'initialBuildSteps' function (backport haskell#9950)
- Loading branch information
Showing
2 changed files
with
82 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
synopsis: Re-instate `initialBuildSteps` | ||
packages: Cabal | ||
issues: #9856 | ||
prs: #9950 | ||
|
||
description: { | ||
|
||
The `initialBuildSteps` function from `Distribution.Simple.Build`, which had | ||
been hastily removed, has been reinstated. | ||
|
||
It now comes with a deprecation warning: calling that function does not suffice | ||
to prepare the sources for a package, as there are other steps that one might | ||
also need to perform: | ||
|
||
- running pre-processors (such as alex/happy) | ||
- running pre-build hooks or custom logic | ||
(in build-type: Hooks or build-type: Custom or Configure) | ||
|
||
Consumers wanting to prepare the sources of a package, e.g. in order to launch a | ||
REPL session, are advised to run `setup repl --repl-multi-file=<fn>` instead. | ||
} |