1{-# LANGUAGE BangPatterns #-}
2module BenchNoDiffOpt where
4{-# LANGUAGE BangPatterns #-}
8import Control.Concurrent( threadDelay )
9import Control.Monad( liftM2 )
11import qualified Data.ByteString.Char8 as B
12import Data.Default (def)
15import System.Environment( getArgs )
20 let fixedGen = mkStdGen 0
23 (w,h) <- displayBounds $ outputIface vty
24 let images = return $ (image0, image1)
25 image0 = charFill defAttr 'X' w h
26 image1 = charFill defAttr '0' w h
28 flipOut vty 300 image0 image1
30 return $ Bench images bench
32flipOut vty n image0 image1 =
33 let !pLeft = picForImage image0
34 !pRight = picForImage image1
36 wLeft n = update vty pLeft >> wRight (n-1)
38 wRight n = update vty pRight >> wLeft (n-1)
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