From 8c9361e4ba6e2257f2bd9d354a56005318477ed6 Mon Sep 17 00:00:00 2001 From: Daniel Gröber Date: Tue, 30 Jul 2019 02:16:19 +0200 Subject: Support cabal-file not being in pkgdir with cabal-v1 --- tests/GhcSession.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/GhcSession.hs') diff --git a/tests/GhcSession.hs b/tests/GhcSession.hs index db06c87..871fddd 100644 --- a/tests/GhcSession.hs +++ b/tests/GhcSession.hs @@ -421,7 +421,7 @@ oldBuildProjSetup :: ProjSetup0 oldBuildProjSetup = ProjSetupDescr "cabal-v1" $ Right $ Ex $ ProjSetupImpl { psiProjType = SV1 , psiDistDir = \dir -> DistDirV1 (dir "dist") - , psiProjLoc = \(CabalFile cf) _projdir -> ProjLocV1CabalFile cf + , psiProjLoc = \(CabalFile cf) projdir -> ProjLocV1CabalFile cf projdir , psiConfigure = \progs dir -> runWithCwd dir (cabalProgram progs) [ "configure" ] , psiBuild = \progs dir -> -- cgit v1.2.3