- or download this
module Main where
...
showOutput = id
process = id
readInput = id
- or download this
module Main where
...
show1 key count = (unwords [key, show count] :)
accumulate hash key = Map.insertWith (+) key 1 hash
- or download this
module Main (main) where
...
control f = readFiles >>= writeIndex . f
readFiles = getArgs >>= liftM concat . mapM readFile
writeIndex = writeFile "words.index"