Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我是 Haskell 世界的新手,我编译了一个简单的 exe.program
main = do putStrLn "Hello, what's your name?" name <- getLine putStrLn ("Hi " ++ name)
如何保持 cmd 处于打开状态,例如其他语言的 Console.ReadLine()。感谢帮助。
再读一遍
main = do putStrLn "Hello, what's your name?" name <- getLine putStrLn ("Hi " ++ name) getLine