aboutsummaryrefslogtreecommitdiff
path: root/tests/GhcSession.hs
diff options
context:
space:
mode:
authorDaniel Gröber <dxld@darkboxed.org>2019-08-06 02:21:32 +0200
committerDaniel Gröber (dxld) <dxld@darkboxed.org>2019-09-17 17:48:26 +0200
commit6d8b9e26885149ff6d3710ae3c7381a1c5b1fb64 (patch)
tree958392e341c0a7d7149a424bb5d575a87c1d3166 /tests/GhcSession.hs
parent8f2e5eee7db0cfae21f0c347d5551f23e69de34c (diff)
Introduce Package abstracton
After lamenting the fact that we don't have this in the docs I figured it really ought to be an exposed abstraction.
Diffstat (limited to 'tests/GhcSession.hs')
-rw-r--r--tests/GhcSession.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/GhcSession.hs b/tests/GhcSession.hs
index 1a97b89..886ee82 100644
--- a/tests/GhcSession.hs
+++ b/tests/GhcSession.hs
@@ -468,7 +468,7 @@ newBuildProjSetup = ProjSetupDescr "cabal-v2" $ Right $ Ex $ ProjSetupImpl
-- V2File then, also remove addCabalProject below so we
-- cover both cases.
, psiConfigure = \progs dir ->
- runWithCwd dir (cabalProgram progs) [ "new-configure" ]
+ runWithCwd dir (cabalProgram progs) [ "new-build", "--only-configure" ]
, psiBuild = \progs dir ->
runWithCwd dir (cabalProgram progs) [ "new-build" ]
, psiSdist = \progs srcdir destdir -> do
@@ -492,7 +492,7 @@ stackProjSetup ghcVer =
, psiProjLoc = \_cabal_file projdir ->
ProjLocStackYaml $ projdir </> "stack.yaml"
, psiConfigure = \progs dir ->
- runWithCwd dir (stackProgram progs) $ argsBefore ++ [ "build", "--dry-run" ]
+ runWithCwd dir (stackProgram progs) $ argsBefore ++ [ "build", "--only-configure" ]
, psiBuild = \progs dir ->
runWithCwd dir (stackProgram progs) $ argsBefore ++ [ "build" ]
, psiSdist = \progs srcdir destdir -> do