1{-# LANGUAGE BangPatterns #-}
2module BenchNoDiffOpt where
4{-# LANGUAGE BangPatterns #-}
8import Control.Concurrent( threadDelay )
9import Control.Monad( liftM2 )
11import qualified Data.ByteString.Char8 as B
14import System.Environment( getArgs )
19 let fixedGen = mkStdGen 0
21 vty <- mkVty defaultConfig
22 (w,h) <- displayBounds $ outputIface vty
23 let images = return $ (image0, image1)
24 image0 = charFill defAttr 'X' w h
25 image1 = charFill defAttr '0' w h
27 flipOut vty 300 image0 image1
29 return $ Bench images bench
31flipOut vty n image0 image1 =
32 let !pLeft = picForImage image0
33 !pRight = picForImage image1
35 wLeft n = update vty pLeft >> wRight (n-1)
37 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