Closed vrom911 closed 6 years ago
I agree with @vrom911 here. Recently I started to value type-safety more than convenience. It's such a pity that we don't have FromInteger
type class with only single method. But probably after Compiletime literals are implemented somehow in GHC, we could make interface of o-clock
more convenient.
I was against this instance in the first place.
We already have had the conversation about
Num
instance forTime
(#14 – issue, #13 – discussion in comments). Time multiplication doesn't make any sense so we agreed on havingerror
on illegal actions fromNum
class just to havefromInteger
that we needed for convenience. And, based on feedback, people don't agree thaterror
is acceptable way, so it's better to get rid of any distrustful code we have. I would like to ask you @ChShersh @int-index if you're also voting for removing these instances?