Skip to content

Instantly share code, notes, and snippets.

@ericmoritz
Created June 9, 2013 22:24
Show Gist options
  • Select an option

  • Save ericmoritz/5745510 to your computer and use it in GitHub Desktop.

Select an option

Save ericmoritz/5745510 to your computer and use it in GitHub Desktop.
main =
fmap reverse getLine >>=
\line1 -> fmap reverse getLine >>=
\line2 -> putStrLn $ "You said " ++ line1 ++ " and " ++ line2 ++ " backwards!"
main = do
line1 <- fmap reverse getLine
line2 <- fmap reverse getLine
putStrLn $ "You said " ++ line1 ++ " and " ++ line2 ++ " backwards!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment