Mercurial > repo
changeset 3017:2c57049fedee
<oerjan> fetch http://oerjan.nvg.org/test.hs
author | HackBot |
---|---|
date | Sat, 01 Jun 2013 19:30:46 +0000 |
parents | c97aaefa412b |
children | fbba3aa90a16 |
files | test.hs.1 |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test.hs.1 Sat Jun 01 19:30:46 2013 +0000 @@ -0,0 +1,2 @@ +import Data.List (sort, stripPrefix) +main = mapM_ putStrLn . map (\s -> head s ++ " occurs->" ++ show (length s)) . group . sort . catMaybes . map (stripPrefix "username:" . (!!2) . words) . lines =<< getContents