Hi guys, 

 

I'm  new to Haskell and I'm just trying out some easy functions right now, but I'm having some trouble here..

 

I want to display a clock

 

type Time = (Int, Int)

 

(hoursx,minutesy) x ={0,1,...,23} y={0,1,...,59} where I can add hours and minutes or set back time. 

If its 23,58 for example and I want to add 35 minutes, the clock has to set to 0,33 not 24,23.

 

Because I'm just getting started with Haskell, I have nooo idea what to do.

Would be great if someone could help me out with this :)

 



---
Alle Postfächer an einem Ort Jetzt wechseln und E-Mail-Adresse mitnehmen! Rundum glücklich mit freenetMail