Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Last revision Both sides next revision | ||
maybe [2014/09/15 20:17] nikolaj |
maybe [2014/09/15 20:18] nikolaj |
||
---|---|---|---|
Line 6: | Line 6: | ||
instance Monad Maybe where | instance Monad Maybe where | ||
- | return x = Just x | ||
(Just x) >>= k = k x | (Just x) >>= k = k x | ||
Nothing >>= _ = Nothing | Nothing >>= _ = Nothing |