4import Control.Monad.Eff.Console (log)
6data Maybe a = Nothing | Just a
8instance functorMaybe :: Functor Maybe where
9 map f Nothing = Nothing
10 map f (Just x) = Just (f x)
12instance applyMaybe :: Apply Maybe where
13 apply (Just f) (Just x) = Just (f x)
16instance applicativeMaybe :: Applicative Maybe where
19instance bindMaybe :: Bind Maybe where
20 bind Nothing _ = Nothing
23instance monadMaybe :: Monad Maybe
35 Nothing :: Maybe Number
52 f :: forall a. Maybe a -> a
60test9 = \_ -> (+) <$> Just 1.0 <*> Just 2.0
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