7data State : Effect where
9 Put : b -> State a b ()
11using (m : Type -> Type)
12 instance Handler State m where
13 handle st Get k = k st st
14 handle st (Put n) k = k n ()
17STATE t = MkEff t State
19get : Eff m [STATE x] x
22put : x -> Eff m [STATE x] ()
25putM : y -> EffM m [STATE x] [STATE y] ()
28update : (x -> x) -> Eff m [STATE x] ()
29update f = put (f !get)
31updateM : (x -> y) -> EffM m [STATE x] [STATE y] ()
32updateM f = putM (f !get)
34locally : x -> Eff m [STATE x] t -> Eff m [STATE y] t
35locally newst prog = do st <- get
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