4import Control.Monad.Eff.Console (log)
6data Auto s i o = Auto { state :: s, step :: s -> i -> o }
8type SomeAuto i o = forall r. (forall s. Auto s i o -> r) -> r
10exists :: forall s i o. s -> (s -> i -> o) -> SomeAuto i o
11exists = \state step f -> f (Auto { state: state, step: step })
13run :: forall i o. SomeAuto i o -> i -> o
14run = \s i -> s (\a -> case a of Auto a -> a.step a.state i)
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