4import Control.Monad.Eff.Console (log)
7 state :: (s -> s) -> m Unit
9data S s a = S (s -> { new :: s, ret :: a })
11instance st :: T s (S s) where
12 state f = S $ \s -> { new: f s, ret: unit }
14test1 :: forall r . S { foo :: String | r } Unit
15test1 = state $ \o -> o { foo = o.foo <> "!" }
17test2 :: forall m r . (T { foo :: String | r } m) => m Unit
18test2 = state $ \o -> o { foo = o.foo <> "!" }
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