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