4import Control.Monad.Eff.Console (log)
13 bind x f = x <> f unit
15applySecond :: forall f a b. (Apply f) => f a -> f b -> f b
16applySecond fa fb = const id <$> fa <*> fb
18infixl 4 applySecond as *>
20newtype Const a b = Const a
22runConst :: forall a b. Const a b -> a
25instance functorConst :: Functor (Const a) where
26 map _ (Const a) = Const a
28instance applyConst :: (Semigroup a) => Apply (Const a) where
29 apply (Const a1) (Const a2) = Const (a1 <> a2)
31example2 :: Const String Unit
38 bind x f = x *> f unit
42 log $ runConst example2
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