Open chshersh opened 6 years ago
I have started doing this task and faced with a difficulty.
UTCTime
is not a hashable
instance, so I guess I have to implement it by myself.
After some googling I found this. Should I import it or just copy some instances?
I also think I should change Deadline Int
to Deadline UTCTime
.
@StasyaGera I don't think you need Hashable
instance for UTCTime
and you can avoid implementing it. You can just translate UTCTime
to some integer (unix timestamp) and hash that integer. Since you're implementing instance Hashable Deadline
you have more options about what to do.
Use this data type from
time
package:Also, I suggest to store
Maybe UTCTime
to be able to perform pure property-based tests without knowing something aboutIO
.