Skip to content

Instantly share code, notes, and snippets.

@chuck0523
Created November 23, 2015 12:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chuck0523/3e2b9e4c3b75bb2f970d to your computer and use it in GitHub Desktop.
Save chuck0523/3e2b9e4c3b75bb2f970d to your computer and use it in GitHub Desktop.
main = do
name <- getName "☆"
putStrLn name
getName str = do
putStrLn "姓: "
lastName <- getLine
putStrLn "名: "
firstName <- getLine
return (lastName ++ str ++ firstName)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment