instance == T where\r
== a b = a.m == b.m && a.s == b.s\r
instance < T where\r
- < a b = a.m < b.m || a.s < b.s\r
+ < a b = a.m < b.m || a.s == b.s && a.s < b.s\r
\r
instance zero T where\r
zero = {m=zero, s=zero}\r
\r
instance fromString T where\r
fromString a\r
- | a.[size a - 3] == ':' = {m = toInt (a % (0, (size a) - 4)), s = toInt (a % ((size a) - 3, size a))}\r
+ | a.[size a - 3] == ':' = {m = toInt (a % (0, (size a) - 4)), s = toInt (a % ((size a) - 2, size a))}\r
| otherwise = zero\r
-\r
-Start :: T\r
-Start = fromString "12:34"\r