import System.FilePath.Posix, . System.FilePath System.FilePath.Posix System.FilePath.Windows , .
words2 , , , . , .
alphaWords = words . map (\c -> if isAlpha c then c else ' ')
searchWords:
- wordsPerFile <- forM files (\x ->
- liftM (wordsWithSuffix suffix) (readFile x))
+ wordsPerFile <- forM files $ fmap (wordsWithSuffix suffix) . readFile
- return $ (sort . nub . concat) wordsPerFile
+ return . sort . nub $ concat wordsPerFile
let , typechecker ... , , , isSearchable:)
, main :
- putStrLn $ unlines words
+ mapM_ putStrLn words
, MissingH; System.IO.HVFS.Utils.recurseDir ? , System.IO.Unsafe.unsafeInterleaveIO .