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 fixed_gen = mkStdGen 0
22 (w,h) <- display_bounds $ output_iface vty
23 let images = return $ (image_0, image_1)
24 image_0 = char_fill def_attr 'X' w h
25 image_1 = char_fill def_attr '0' w h
27 flip_out vty 300 image_0 image_1
29 return $ Bench images bench
31flip_out vty n image_0 image_1 =
32 let !p_left = pic_for_image image_0
33 !p_right = pic_for_image image_1
35 w_left n = update vty p_left >> w_right (n-1)
37 w_right n = update vty p_right >> w_left (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