Skip to content

Instantly share code, notes, and snippets.

@benjumanji
Created June 5, 2014 21:36
Show Gist options
  • Save benjumanji/d61254dac5e74981046d to your computer and use it in GitHub Desktop.
Save benjumanji/d61254dac5e74981046d to your computer and use it in GitHub Desktop.
works
main :: IO ()
main = undefined
test = do
x <- eitherString1
(y,_) <- eitherString2
return (x ++ y)
where
eitherString1 = Right "lol"
eitherString2 = Right ("Yolo", 7)
test2 =
eitherString1 >>= λx ->
eitherString2 >>= λ(y, _) ->
return (x ++ y)
where
eitherString1 = Right "lol"
eitherString2 = Right ("Yolo", 7)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment