Fix findFilesInParentsP appending wrong directory
This commit is contained in:
parent
9074e6e31c
commit
b7cda9e9b9
@ -142,7 +142,7 @@ findFileInParentsP p r dir = runMaybeT $
|
||||
findFilesInParentsP :: (FilePath -> Bool) -> FilePath
|
||||
-> IO [IO [FilePath]]
|
||||
findFilesInParentsP p dir' = U.makeAbsolute' dir' >>= \dir -> return $
|
||||
map (fmap (map (dir </>)) . getFilesP p) $ parents dir
|
||||
map (\d -> (map (d </>)) <$> getFilesP p d) $ parents dir
|
||||
|
||||
-- | @getFilesP p dir@. Find all __files__ satisfying @p@ in @.cabal@ in @dir@.
|
||||
getFilesP :: (FilePath -> Bool) -> DirPath -> IO [FileName]
|
||||
|
Loading…
Reference in New Issue
Block a user