Skip to content

Commit

Permalink
Re #6679 Document current setup-depends behaviour, re missing Cabal
Browse files Browse the repository at this point in the history
  • Loading branch information
mpilgrem committed Jan 20, 2025
1 parent bdcbc3a commit 8d4836e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions doc/commands/build_command.md
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,12 @@ part of Stack's
[user's guide](../tutorial/building_your_project.md#adding-dependencies) for
information about how these dependencies get specified.

If a package description specifies a custom build type, it must also specify a
custom setup. That should list the dependencies needed to compile `Setup.hs`.
Stack further customises the setup, using the `Cabal` package. If that package
is not listed, Stack will not add the package as a dependency but warn that
build errors are likely.

In addition to specifying targets, you can also control what gets built, or
retained, with the flags and options listed below. You can also affect what gets
built by specifying Cabal (the library) options for the configure step
Expand Down

0 comments on commit 8d4836e

Please sign in to comment.