1{-# LANGUAGE BangPatterns, ScopedTypeVariables #-}
4import Control.Exception
8import System.Environment (getArgs)
10import qualified Data.ByteString as B
12instance NFData JSValue where
14 rnf (JSBool b) = rnf b
15 rnf (JSRational b r) = rnf b `seq` rnf r `seq` ()
16 rnf (JSString s) = rnf (fromJSString s)
17 rnf (JSArray vs) = rnf vs
18 rnf (JSObject kvs) = rnf (fromJSObject kvs)
22 let count = read cnt :: Int
23 forM_ args $ \arg -> do
25 start <- getCurrentTime
27 | good+bad >= count = return (good, bad)
30 case decodeStrict s of
31 Ok (v::JSValue) -> loop (good+1) 0
35 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