I'm using GHC 8.6.5 in Windows 10.
I'm a beginner in Haskell, but have some C# experience. When I try
main = putStrLn "Hello, World!"
and I compile, the program shows the screen only for a moment. I want something like Console.ReadLine()
in C# so that the screen will remain until I press enter. What should I do?
I have searched the net for 2 hours in vain.
main = putStrLn "Hello, World!"
.hs
file, avoidingmain
. In GHCi you can evaluate any expression and observe their result. If you edit the.hs
file, you can use:r
to reload the new definitions.