[Haskell-beginners] haskell Time

Claudia Weber kaetheweber at freenet.de
Mon Dec 1 15:21:49 UTC 2014


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/beginners/attachments/20141201/b581e832/attachment.html>


More information about the Beginners mailing list