1module Control.Catchable
7interface Catchable (m : Type -> Type) t | m where
9 catch : m a -> (t -> m a) -> m a
11implementation Catchable Maybe () where
12 catch Nothing h = h ()
13 catch (Just x) h = Just x
17implementation Catchable (Either a) a where
18 catch (Left err) h = h err
19 catch (Right x) h = (Right x)
23implementation Catchable (IOExcept err) err where
24 catch (IOM prog) h = IOM (do p' <- prog
26 Left e => let IOM he = h e in he
27 Right val => pure (Right val))
30implementation Catchable List () where
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