5data Maybe a = Nothing | Just a
7instance functorMaybe :: Functor Maybe where
8 (<$>) f Nothing = Nothing
9 (<$>) f (Just x) = Just (f x)
11instance applyMaybe :: Apply Maybe where
12 (<*>) (Just f) (Just x) = Just (f x)
15instance applicativeMaybe :: Applicative Maybe where
18instance bindMaybe :: Bind Maybe where
19 (>>=) Nothing _ = Nothing
20 (>>=) (Just a) f = f a
22instance monadMaybe :: Prelude.Monad Maybe
28 (x : _) <- Just [1, 2, 3]
29 (y : _) <- Just [4, 5, 6]
34 Nothing :: Maybe Number
51 f :: forall a. Maybe a -> a
59test9 = \_ -> (+) <$> Just 1 <*> Just 2
67main = Debug.Trace.trace "Done"
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