-
Notifications
You must be signed in to change notification settings - Fork 701
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reinstate 'initialBuildSteps' function
This patch reinstates the 'initialBuildSteps' function, as it is used by stack in its implementation of the multi-repl feature. A deprecation warning has been added to that function: calling it 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. Fixes #9856 (cherry picked from commit dd74e92) # Conflicts: # Cabal/src/Distribution/Simple/Build.hs
- Loading branch information
1 parent
9b92dd2
commit d29ece2
Showing
2 changed files
with
90 additions
and
0 deletions.
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. | ||
} |