Skip to content

Clock: Add deriving Eq to stub to make it testable #891

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 21, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion exercises/clock/.meta/DONT-TEST-STUB

This file was deleted.

2 changes: 1 addition & 1 deletion exercises/clock/package.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: exercism-clock
version: 2.4.0.9
version: 2.4.0.10

dependencies:
- base
Expand Down
1 change: 1 addition & 0 deletions exercises/clock/src/Clock.hs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
module Clock (addDelta, fromHourMin, toString) where

data Clock = Dummy
deriving Eq

fromHourMin :: Int -> Int -> Clock
fromHourMin hour min = error "You need to implement this function."
Expand Down