Skip to content

Commit 342b932

Browse files
committed
clock: Add dummy data to stub so that it compiles
As part of the work in #421.
1 parent 4c12735 commit 342b932

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

exercises/clock/HINTS.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,6 @@ The function `fromInteger`, from `Num`, must convert minutes
1212
to 24 hour clock time. It is not necessary to have a sensible
1313
implementation of `abs` or `signum`.
1414

15-
Your can use the provided signatures if you are unsure about the types, but
16-
don't let them restrict your creativity.
15+
You will find a dummy data declaration and type signatures already in place,
16+
but it is up to you to define the functions and create a meaningful data type,
17+
newtype or type synonym.

exercises/clock/src/Clock.hs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
module Clock (clockHour, clockMin, fromHourMin, toString) where
22

3+
data Clock = Dummy
4+
35
clockHour :: Clock -> Int
46
clockHour = undefined
57

0 commit comments

Comments
 (0)