1{-# LANGUAGE BangPatterns, TemplateHaskell #-}
4import Control.Applicative
5import Control.Monad.IO.Class (liftIO)
6import qualified Data.ByteString.Lazy as BSL
7import Data.Binary (encode, decode)
13 go :: Int -> ProcessM ()
18 Just them -> send them n >> go 0
20count :: Int -> ProcessId -> ProcessM ()
23 replicateM_ n $ send them (Nothing :: Maybe ProcessId)
26 liftIO $ print (n == n')
28initialProcess :: String -> ProcessM ()
29initialProcess "SERVER" = do
31 liftIO $ BSL.writeFile "counter.pid" (encode us)
33initialProcess "CLIENT" = do
35 them <- liftIO $ decode <$> BSL.readFile "counter.pid"
39main = remoteInit (Just "config") [] initialProcess
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