1import Control.Concurrent (myThreadId)
2import System.IO (stdout, hSetBuffering, BufferMode(LineBuffering))
3import System.Random (randomIO)
5import Streamly.Prelude (nil, yieldM)
9 yieldM $ hSetBuffering stdout LineBuffering
12 yieldM $ myThreadId >>= putStr . show
19 -- parallely $ mconcat $ replicate n $ yieldM (...)
20 loop :: String -> Int -> SerialT IO String
22 rnd <- yieldM (randomIO :: IO Int)
23 let result = name <> show rnd
24 repeatIt = if n > 1 then loop name (n - 1) else nil
25 in return result `wAsync` repeatIt
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