I have problem running programs performing input/output from the plugin. For example:
main = putStrLn "What is your name?"
>> getLine
>>= \name -> putStrLn ("Hello, " ++ name ++ "!")
This works as expected from the command line (using stack run, but from Intellij, it doesn't display the prompting message (What is your name?) until you enter a name, and then it displays everything. Is there a workaround?
Hello,
I have problem running programs performing input/output from the plugin. For example:
This works as expected from the command line (using
stack run
, but from Intellij, it doesn't display the prompting message (What is your name?
) until you enter a name, and then it displays everything. Is there a workaround?