Skip to content

Instantly share code, notes, and snippets.

@yangsu
Created April 23, 2013 19:50
Show Gist options
  • Save yangsu/5446829 to your computer and use it in GitHub Desktop.
Save yangsu/5446829 to your computer and use it in GitHub Desktop.
Haskell do Monad
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