adding dir for doesFileExist.
This commit is contained in:
parent
a07ce7edcc
commit
dc552406e0
2
Cabal.hs
2
Cabal.hs
@ -83,7 +83,7 @@ getDirs = do
|
||||
cabalDir :: FilePath -> IO (Maybe (FilePath,FilePath))
|
||||
cabalDir dir = do
|
||||
cnts <- (filter isCabal <$> getDirectoryContents dir)
|
||||
>>= filterM doesFileExist
|
||||
>>= filterM (\file -> doesFileExist (dir </> file))
|
||||
case cnts of
|
||||
[] -> do
|
||||
let dir' = takeDirectory dir
|
||||
|
Loading…
Reference in New Issue
Block a user