7data State : Effect where
9 Put : b -> sig State () a b
11-- using (m : Type -> Type)
12instance 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
22put : x -> Eff () [STATE x]
23put val = call $ Put val
25putM : y -> Eff () [STATE x] [STATE y]
26putM val = call $ Put val
28update : (x -> x) -> Eff () [STATE x]
29update f = put (f !get)
31updateM : (x -> y) -> Eff () [STATE x] [STATE y]
32updateM f = putM (f !get)
34locally : x -> (Eff t [STATE x]) -> Eff t [STATE y]
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