From 94f01bb7dbb163b2a97aa548457f37c7fd1c88fe Mon Sep 17 00:00:00 2001 From: Daniel Gröber Date: Sun, 16 Dec 2018 17:44:37 +0100 Subject: Fix cabal-file path for multi package v2 projects --- src/CabalHelper/Compiletime/Cabal.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/CabalHelper/Compiletime/Cabal.hs b/src/CabalHelper/Compiletime/Cabal.hs index 9d0d00a..9c3e420 100644 --- a/src/CabalHelper/Compiletime/Cabal.hs +++ b/src/CabalHelper/Compiletime/Cabal.hs @@ -205,7 +205,7 @@ resolveCabalVersion (CabalHEAD ()) = do findCabalFile :: FilePath -> IO FilePath findCabalFile pkgdir = do [cfile] <- filter isCabalFile <$> getDirectoryContents pkgdir - return cfile + return $ pkgdir cfile where isCabalFile :: FilePath -> Bool isCabalFile f = takeExtension' f == ".cabal" -- cgit v1.2.3