Created
April 23, 2013 19:50
-
-
Save yangsu/5446829 to your computer and use it in GitHub Desktop.
Haskell do Monad
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Main where | |
tryIo = do putStr "Enter your name: " ; | |
line <- getLine ; | |
let { backwards = reverse line } ; | |
return ("Hello. Your name backwards is " ++ backwards) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment