Sha256: f10f722eb8b8a64efb97400618537e0492c133f0928babf3bfd4e29aa57dc36a
Contents?: true
Size: 474 Bytes
Versions: 61
Compression:
Stored size: 474 Bytes
Contents
## Hints To complete this exercise you need to define the data type `Clock`, with `Eq`, `Show` and `Num` instances, and implement the functions: - clockHour - clockMin - fromHourMin - toString The function `fromInteger`, from `Num`, must convert minutes to 24 hour clock time. It is not necessary to have a sensible implementation of `abs` or `signum`. Your can use the provided signatures if you are unsure about the types, but don't let them restrict your creativity.
Version data entries
61 entries across 61 versions & 1 rubygems