Skip to content

Commit

Permalink
ch09: SimpleFinder.hs
Browse files Browse the repository at this point in the history
  • Loading branch information
tianyicui committed Nov 28, 2010
1 parent 8c4be3d commit 5ccdb0a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ch09/SimpleFinder.hs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import RecursiveContents (getRecursiveContents)

simpleFinder :: (FilePath -> Bool) -> FilePath -> IO [FilePath]
simpleFinder p path = do
names <- getRecursiveContents path
return (filter p names)

0 comments on commit 5ccdb0a

Please sign in to comment.