1-- @inline export traverseFun1 arity=1
2-- @inline export rewriteBottomUpM arity=1
3module Snapshot.VanLaarhovenTraversals01 where
7import Data.Identity (Identity(..))
8import Safe.Coerce (coerce)
14traverseFun1 :: forall f. Applicative f => (Fun -> f Fun) -> Fun -> f Fun
15traverseFun1 k = case _ of
21rewriteBottomUpM :: forall m. Monad m => (Fun -> m Fun) -> Fun -> m Fun
22rewriteBottomUpM k = k <=< go
24 go a = traverseFun1 (k <=< go) a
26rewriteBottomUp :: (Fun -> Fun) -> Fun -> Fun
27rewriteBottomUp = coerce (rewriteBottomUpM :: _ -> _ -> Identity _)
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