calebh
9/28/2018 - 2:42 AM

Haskell do notation

Haskell do notation

do
    x1 <- expr1
    x2 <- expr2
    expr3

-- Is equivalent to:

expr1 >>= (\x1 -> expr2 >>= (\x2 -> expr3))