6 state :: (s -> s) -> m Unit
8data S s a = S (s -> { new :: s, ret :: a })
10instance st :: T s (S s) where
11 state f = S $ \s -> { new: f s, ret: unit }
13test1 :: forall r . S { foo :: String | r } Unit
14test1 = state $ \o -> o { foo = o.foo ++ "!" }
16test2 :: forall m r . (T { foo :: String | r } m) => m Unit
17test2 = state $ \o -> o { foo = o.foo ++ "!" }
22 Control.Monad.Eff.Console.log "Done"
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