[Haskell-cafe] [help] Program immplementing an alarm
Antonio Regidor García
a_regidor at yahoo.es
Sun Apr 27 05:50:05 EDT 2008
Hi,
I'm trying to implement an alarm in Haskell and wrote the following code: http://hpaste.org/7201
But it doesn't work as expected.
The expected behaviour is: The user enters a time in minutes. If the time is reached, a bell
rings. If, before the time is reached, he press enter, the program finish and prints the elapsed
time.
The actual behaviour is: The user enters a time in minutes. If time is reached, nothing happens.
If the user press enter, the elapsed time is printed and the program finish. Also, if he pressed
enter after the time had elapsed, the bell rings.
Some ideas?
Antonio Regidor García
______________________________________________
Enviado desde Correo Yahoo! La bandeja de entrada más inteligente.
More information about the Haskell-Cafe
mailing list