Closed adituv closed 6 years ago
Due to #60 (and because all the Show tests are implicit in seriesF tests) I haven't implemented tests for the Show instance explicitly. Let me know if you would like me to do that too, or whether you would prefer to wait on #60.
I tried to look at #60 but I don't understand the 8.0.4+ type logic enough to handle it right now
Oh, one more thing: could you please update changelog as well?
Sorry, I seem to have messed up something on git! I'm fixing it now.
Git problems resolved. I am not sure on the protocol for when responding to requested changes though: should I squash the commits? For now I've left them separated.
@adituv Sorry, we don't have contributing guide at this project at the moment 😞 So it's up to you. It makes sense to me to squash commits after code review (to make code review easier and resulting history cleaner). But I don't insist on this for volunteer contributors 🙂
@adituv Thanks for your amazing contribution to our project! 🎉
The Show and Read instances for Time now support mixed fractions:
show
always outputs a mixed fraction, andread
can read either an improper fraction (the previous functionality) or a mixed fraction.The Show instance now has
showsPrec
explicitly implemented instead ofshow
as precedence could potentially matter with the '+' in the middle. Parentheses are added when the surrounding precedence is greater than 6, the precedence of '+'. For example, 3 * (7+2/5s). This should not affectseriesF
as that uses show, and so a precdence of 0.Resolves #61