1{-# LANGUAGE BangPatterns #-}
2{-# LANGUAGE ScopedTypeVariables #-}
3{-# OPTIONS_GHC -fno-warn-orphans #-}
5module Main (main) where
13import System.Environment (getArgs)
16instance NFData JSValue where
18 rnf (JSBool b) = rnf b
19 rnf (JSRational b r) = rnf b `seq` rnf r `seq` ()
20 rnf (JSString s) = rnf (fromJSString s)
21 rnf (JSArray vs) = rnf vs
22 rnf (JSObject kvs) = rnf (fromJSObject kvs)
27 let count = read cnt :: Int
28 forM_ args $ \arg -> do
30 start <- getCurrentTime
32 | good+bad >= count = return (good, bad)
35 case decodeStrict s of
36 Ok (_::JSValue) -> loop (good+1) 0
40 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