无序执行的IO

时间:2014-06-02 22:24:57

标签: haskell

我创建了简单的程序。取一些输入并重复它但是...... IO无序执行。我该怎么办?

main = putStr "Plese write some characters: " >>
       getLine >>= (\str -> putStrLn $ "You wrote "++str++"!") >>
       putStrLn "Bye"   

0 个答案:

没有答案