How do stop the console window from closing after there has been a error when running a .exe?
I am keeping the window open with _ <- getLine
but this of course only works if the program runs up to that point.
How do stop the console window from closing after there has been a error when running a .exe?
I am keeping the window open with _ <- getLine
but this of course only works if the program runs up to that point.
If you are asking how to keep the console window opened when invoked from a short cut, try invoking the program with cmd.exe /k ...
See, for instance: How do you keep the console from closing after the program is done in C?