From 6d8b9e26885149ff6d3710ae3c7381a1c5b1fb64 Mon Sep 17 00:00:00 2001 From: Daniel Gröber Date: Tue, 6 Aug 2019 02:21:32 +0200 Subject: 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. --- tests/GhcSession.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') 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 -- cgit v1.2.3