1{-# LANGUAGE FlexibleContexts #-}
3import Control.Applicative ((<$>), (<*>), (<|>))
4import Control.Monad.IO.Class (liftIO)
9 hSetBuffering stdout LineBuffering
10 xs <- wait $ threads 5 $ do
11 x <- (,) <$> (event 1 <|> event 2) <*> (event 3 <|> event 4)
12 --x <- (,) <$> choose [1,2] <*> choose [3,4]
13 liftIO $ putStrLn $ show x
17 event n = async $ liftIO $ (do putStrLn ("event" ++ show n); return n :: IO Int)
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