annotate test.hs @ 3016:c97aaefa412b

<oerjan> fetch http://oerjan.nvg.org/test.hs
author HackBot
date Sat, 01 Jun 2013 19:29:25 +0000
parents
children fbba3aa90a16
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3016
c97aaefa412b <oerjan> fetch http://oerjan.nvg.org/test.hs
HackBot
parents:
diff changeset
1 import Data.List (sort)
c97aaefa412b <oerjan> fetch http://oerjan.nvg.org/test.hs
HackBot
parents:
diff changeset
2 main = mapM_ putStrLn . map (\s -> head s ++ " occurs->" ++ show (length s)) . group . sort . catMaybes . map (stripPrefix "username:" . (!!2) . words) . lines =<< getContents