Antonio Regidor García wrote:
> I'm trying to implement an alarm in Haskell and wrote the following code:
> But it doesn't work as expected.
The getLine function ties up stdin. So the system function isn't
able to proceed until getLine completes, even when it is in
Try using System.Process.runInteractiveProcess instead of system.
Don't forget to call waitForProcess on the process handle
when you are finished, or you will be left with a zombie.
Hope this helps,
Haskell-Cafe mailing list