1{-# LANGUAGE BangPatterns, OverloadedStrings #-}
4import Control.Exception
7import Data.Aeson.Parser
10import System.Environment (getArgs)
12import qualified Data.ByteString as B
16 let count = read cnt :: Int
17 forM_ args $ \arg -> bracket (openFile arg ReadMode) hClose $ \h -> do
19 start <- getCurrentTime
21 | good+bad >= count = return (good, bad)
23 hSeek h AbsoluteSeek 0
24 let refill = B.hGet h 16384
25 result <- parseWith refill json =<< refill
27 Done _ r -> loop (good+1) bad
28 _ -> loop good (bad+1)
31 putStrLn $ " " ++ show good ++ " good, " ++ show (diffUTCTime end start)
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list