-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use a library to reimplement the code I fixed in my last commit.
The directory reading code had some weird `seq` calls in it -- perhaps to avoid memory leaks? -- and seems to be equivalent to a few lines using the 'directory-tree' library. The comments for the old implementation mentioned it returned an *ordered* list of directory contents. I don't expect that mattered, or know what "ordered" means here, but path-based orderings could be recovered by adding a call to 'sort', e.g. recurseDirectory path = *sort .* toList . dirTree <$> build path
- Loading branch information
Showing
2 changed files
with
9 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters