1import Control.Applicative ((<|>), empty)
2import Control.Concurrent (myThreadId)
3import Control.Monad.IO.Class (liftIO)
4import System.IO (stdout, hSetBuffering, BufferMode(LineBuffering))
5import System.Random (randomIO)
9 liftIO $ hSetBuffering stdout LineBuffering
12 liftIO $ myThreadId >>= putStr . show
19 rnd <- liftIO (randomIO :: IO Int)
20 let result = (name ++ show rnd)
21 repeat = if n > 1 then loop name (n - 1) else empty
22 in (return result) <|> repeat
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