Skip to content

Commit 8d4836e

Browse files
committed
Re #6679 Document current setup-depends behaviour, re missing Cabal
1 parent bdcbc3a commit 8d4836e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

doc/commands/build_command.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,12 @@ part of Stack's
210210
[user's guide](../tutorial/building_your_project.md#adding-dependencies) for
211211
information about how these dependencies get specified.
212212

213+
If a package description specifies a custom build type, it must also specify a
214+
custom setup. That should list the dependencies needed to compile `Setup.hs`.
215+
Stack further customises the setup, using the `Cabal` package. If that package
216+
is not listed, Stack will not add the package as a dependency but warn that
217+
build errors are likely.
218+
213219
In addition to specifying targets, you can also control what gets built, or
214220
retained, with the flags and options listed below. You can also affect what gets
215221
built by specifying Cabal (the library) options for the configure step

0 commit comments

Comments
 (0)