We're writing some sort of git log processor to do some historical analysis of our codebase. To get going:
terminal$...
sudo apt-get install ghc cabal-install # or however your platform does it
cabal update && cabal install split
ghci
ghci>...
:l historian.hs
run "path/to/repo" -- run historian over commit log (default: echo)
-- finally, edit historian.hs... :l... run... repeat
Links & a personal favourite snippet from each project...
- Emlyn, David & Adam's word cloud
[x | x <- (listWords log), (not (Data.Set.member x banned))]
- Tommy, Chet & Kostas's day counter
countDays (map (precious . (\x -> read x :: Integer)) times)
- Adam's word cloud
ys = sortBy (on compare length) (group (analyseHistory xs))
- Marcin, Simon & Doug's word count
ft (h:t) = M.insertWith (+) h 1 (ft t)