15 lines · 414 B · Text
RawDownload
import Stuff (>>=) : (Maybe a) -> (a -> Maybe b) -> Maybe b(>>=) Nothing k = Nothing(>>=) (Just x) k = k x mthings : (foo : Maybe (Maybe Int)) -> (bar : Maybe (Maybe Int)) -> Maybe Intmthings mx my    = do Just x <- mx            | Nothing => Just 0         Just y <- my            | Nothing => Just 1         let z : Int -> Int             z x = prim__add_Int x y         Just (z (prim__add_Int x x))

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t