Is it possible to run a program in Leksah and enter user input ? If yes, how ?
Reason for asking:
I tried two different ways to run a program in Leksah and enter user input and both ways failed:
First approach - running in normal mode (not GHCi) :
Simply writing to console works fine :
However, Leksah hangs when I try to run the following program, asking for input :
Second approach : using GHCi in Leksah.
main2 works fine. Evaluating
main hangs. It is not possible to enter input.
Any idea how one can enter user input when launching a program in Leksah ?