Skip to content

Instantly share code, notes, and snippets.

@diegoeche
Created November 1, 2009 01:56
Show Gist options
  • Save diegoeche/223360 to your computer and use it in GitHub Desktop.
Save diegoeche/223360 to your computer and use it in GitHub Desktop.
main = do
x <- getLine
putStrLn $ reverse x
main' = (liftM reverse >=> putStrLn) $ getLine
main'' = getLine >>= (putStrLn . reverse)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment