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)
他の言語の Console.ReadLine() のように、cmd を開いたままにしておくにはどうすればよいですか。手伝ってくれてありがとう。
もう一度一行読むだけ
main = do putStrLn "Hello, what's your name?" name <- getLine putStrLn ("Hi " ++ name) getLine