factor out getDirectoryContentsRecursive function in GHCup.Utils.Prelude

This commit is contained in:
Arjun Kathuria 2021-06-26 21:53:14 +05:30
parent 2277013c76
commit 6379a26afb

View File

@ -340,8 +340,8 @@ copyDirectoryRecursive srcDir destDir = do
-- parent directories. The list is generated lazily so is not well defined if
-- the source directory structure changes before the list is used.
--
getDirectoryContentsRecursive :: FilePath -> IO [FilePath]
getDirectoryContentsRecursive topdir = recurseDirectories [""]
getDirectoryContentsRecursive :: FilePath -> IO [FilePath]
getDirectoryContentsRecursive topdir = recurseDirectories [""]
where
recurseDirectories :: [FilePath] -> IO [FilePath]
recurseDirectories [] = return []