Support multi-package stack projects

This commit is contained in:
Daniel Gröber
2015-09-08 03:54:29 +02:00
parent 026b64ee26
commit f06511bff1
2 changed files with 10 additions and 4 deletions

View File

@@ -242,8 +242,8 @@ withCabal action = do
supported <- haveStackSupport
if supported
then do
spawn [T.stackProgram progs, "build", "--only-dependencies"]
spawn [T.stackProgram progs, "build", "--only-configure"]
spawn [T.stackProgram progs, "build", "--only-dependencies", "."]
spawn [T.stackProgram progs, "build", "--only-configure", "."]
writeAutogen projdir distdir
else
gmLog GmWarning "" $ strDoc $ "Stack project configuration is out of date, please reconfigure manually using 'stack build' as your stack version is too old (need at least 0.1.4.0)"